The Dart SDK is currently in experimental status. If you would like to provide feedback, please reach out to us with your suggestions and comments on our Discord.
Dart - sql.connectionString()
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 handler
final 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 handler
final connStr = await db.connectionString();