getSessionInitSql method
Returns the post-connect SQL statements for the dialect implied by
connectionString, customised by options.
The returned list is empty when the dialect has no specific setup.
Implementation
List<String>? getSessionInitSql({
required String connectionString,
SessionOptions? options,
}) {
if (!supportsApi) return null;
final data = _backend.getSessionInitSql(
connectionString,
options == null ? null : jsonEncode(options.toJson()),
);
if (data == null) return null;
final dynamic decoded = jsonDecode(utf8.decode(data));
if (decoded is! List) return <String>[];
return decoded.cast<String>();
}