Dart - sql.connectionString()
This is reference documentation for the Nitric Dart SDK. To learn about SQL Databases in Nitric start with the SQL docs.
Returns the connection string for a SQL database at runtime.
import 'package:nitric_sdk/nitric.dart';final db = Nitric.sql("my-database");// Should be called at runtime, such as in a service handlerfinal connStr = await db.connectionString();
Examples
Return a connection string
import 'package:nitric_sdk/nitric.dart';final db = Nitric.sql("my-database");// Should be called at runtime, such as in a service handlerfinal connStr = await db.connectionString();
Last updated on Apr 3, 2025