Python - sql.connection_string()

Returns the connection string for a SQL database at runtime.

from nitric.resources import sql
main = api("main")
database = sql("database")
await database.connection_string()

Examples

Return a connection string

from nitric.resources import sql
main = api("main")
database = sql("database")
await database.connection_string()
Last updated on Oct 15, 2024