Is it possible to set prisma file to ts file? I ...
# orm-help
k
Is it possible to set prisma file to ts file? I want to set the db url to the config library. (If you know the example code, please let me know.) config lib : https://www.npmjs.com/package/config
r
For
PrismaClient
you can set it as shown here.
✅ 1
👍 1
💯 1
k
@Ryan thank you for the reply! I didn't know the setting existed. Is it impossible to execute the prisma db command by setting it programmatically? (ex) db push, migrate deploy, migrate-reset) (If that doesn't work, you'll have to manually run the migration ddl sql. 😅) Does the generate command not check the existence of the db url?
r
Currently CLI commands only expect the environment variable so it isn't possible.
💯 1
👍 1