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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview feature feedback: PostgreSQL extensions #15835
Comments
Please add support for |
@chriskuech The purpose of the What you can do is to add generator client {
provider = "prisma-client-js"
previewFeatures = ["postgresqlExtensions"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
extensions = [cube]
} And then use Raw database access with Prisma Client. Notes about |
@Jolg42 Thanks. Doesn't that mean you need to add https://www.prisma.io/docs/orm/prisma-schema/postgresql-extensions |
@chriskuech So maybe this is confusing because it's more of a "well known list", what happens is that if an extension is on this list then the Introspection behavior changes, see below: Any extension can be used actually, the only difference will be in the behavior of Introspection / Re-Introspection. I think I remember something about some extensions being safe to add or remove during migrations, but that's not guaranteed for any extension, so to be on the safe side we have this list. If an extension is not on this list, then you have to manually add it to the Prisma schema. |
I have an extension installed for development purposes only (specifically: pgtap is manually installed on my local instance for testing, but intentionally not installed on my deployed database). Currently, each time I try to migrate after installing pgtap to my local database and running my tests, Prisma tries to reset. This happens whether I have Seeing as this extension will have no affect on Prisma or my application, whether installed or not, it would be useful for to be a way to mark an extension as "optional" or "development only" or "ignored" or something, so that it just... doesn't get involved at any time. Similar to the existing |
Please use this issue to share any feedback about the
postgresqlExtensions
functionality released in v4.5.0.Documentation can be found here.
If you encounter a bug, please open a bug report in this repo.
Many thanks 馃憦馃徎 from the Prisma team.
The text was updated successfully, but these errors were encountered: