Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the use of multiple schemas in the same project. #332

Open
TanaseHagi opened this issue Feb 11, 2024 · 1 comment
Open

Document the use of multiple schemas in the same project. #332

TanaseHagi opened this issue Feb 11, 2024 · 1 comment
Labels
bug Something isn't working platform:dart

Comments

@TanaseHagi
Copy link

I am trying to use multiple schemas in the same project. When generating from the first schema, prisma works just fine, but after generating the second I get an error:

Unhandled exception:
Exception: Prisma binary query engine not ready
#0      BinaryEngine._serverEndpoint.<anonymous closure> (package:orm/engines/binary.dart:107:13)
#1      RetryOptions.retry (package:retry/retry.dart:131:24)
<asynchronous suspension>
#2      BinaryEngine._serverReady (package:orm/engines/binary.dart:114:18)
<asynchronous suspension>
#3      BinaryEngine._internalStart (package:orm/engines/binary.dart:92:19)
<asynchronous suspension>
#4      BinaryEngine.start (package:orm/engines/binary.dart:53:18)
<asynchronous suspension>
#5      BinaryEngine.request (package:orm/engines/binary.dart:168:5)
<asynchronous suspension>
#6      ActionClient.unserialized.<anonymous closure> (package:orm/src/runtime/action_client.dart:17:34)
<asynchronous suspension>
#7      UserDelegate.create.<anonymous closure> (package:manager/prisma/manager/generated/client.dart:205:16)
<asynchronous suspension>
<asynchronous suspension>

manager.prisma

generator client {
  provider = "dart run orm"
  output   = "../lib/prisma/manager/generated"
}

datasource db {
  provider = "postgresql"
  url      = env("MANAGER_DATABASE_URL")
}

tenant.prisma

generator client {
  provider = "dart run orm"
  output   = "../lib/prisma/tenant/generated"
}

datasource db {
  provider = "postgresql"
  url      = env("TENANT_DATABASE_URL")
}
@medz medz added bug Something isn't working platform:dart labels Jun 5, 2024
@medz
Copy link
Owner

medz commented Jun 5, 2024

@TanaseHagi This is a bug implemented by the binary engine, and I will do my best to troubleshoot and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform:dart
Projects
None yet
Development

No branches or pull requests

2 participants