文档
参考
客户端
选项

客户端选项

Prisma 客户端中的配置或选项通过函数选项设置。

WithDatasourceURL

您可以在运行时配置或覆盖数据源 URL

client := db.NewClient(
  db.WithDatasourceURL("postgresql://localhost:5432/mydb?schema=public"),
)