Python - sql.connection_string()

This is reference documentation for the Nitric Python SDK. To learn about SQL Databases in Nitric start with the SQL docs.

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 Apr 3, 2025