prisma init --datasource-provider=cockroachdb --url ...
sets provider to postgresql
#12360
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/typescript
Issue for tech TypeScript.
topic: cockroachdb
topic: prisma init
CLI: prisma init
Milestone
Note:
--datasource-provider
is not read if--url
is passed.There is an edge case not handled here for cockroachdb urls which will be added with
postgresql
provider (since they start withpostgresql://
)Using
--datasource-provider=cockroachdb
will work, but with an example url instead of what is supplied via--url
.We should probably open that up to allow setting it.
Maybe also document that
--url
leads to it trying to auto detect.The text was updated successfully, but these errors were encountered: