How to use the @prisma/sdk/src/convertCredentials.credentialsToUri function in @prisma/sdk

To help you get started, we’ve selected a few @prisma/sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github prisma / prisma2 / cli / introspection / src / prompt / screens / Step60DownloadExample.tsx View on Github external
function credentialsToDataSource(credentials: DatabaseCredentials): DataSource {
  return {
    name: 'db',
    url: {
      value: credentials.uri || credentialsToUri(credentials),
      fromEnvVar: null,
    },
    config: {},
    connectorType: credentials.type,
  }
}