See YDB Documentation for more details.
The DSN must be given in the following format.
ydb://{endpoint}/{database}[?param=value]
Param
WithInstance Config
Description
x-migrations-table
MigrationsTable
Name of the migrations table. Defaults to schema_migrations
.
x-insecure
Boolean to indicate whether to use an insecure connection. Defaults to false
.
x-connect-timeout
Initial connection timeout to the cluster. Unset/empty means no timeout.
x-auth-mode
Options: (unset/empty), anonymous
, static
, access-token
, oauth2
.
x-connect-timeout
is parsed using time.ParseDuration
Param
Description
x-auth-username
Username
x-auth-password
Password
Param
Description
x-auth-access-token
Access Token
Subject Token Source fixed
Param
Description
x-auth-subject-token
Token
x-auth-subject-token-type
Token Type
Param
Description
x-auth-subject-jwt-iss
Issuer
x-auth-subject-jwt-sub
Subject
x-auth-subject-jwt-aud
Audience
x-auth-subject-jwt-jti
JWT ID
x-auth-subject-jwt-alg
Algorithm
x-auth-subject-jwt-kid
Key ID
x-auth-subject-jwt-pem-file
Private Key