pragmaStatements method

  1. @override
List<String> pragmaStatements(
  1. SqliteOpenOptions options
)

Implementation

@override
List<String> pragmaStatements(SqliteOpenOptions options) {
  final basePragmaStatements = super.pragmaStatements(options);
  return [
    // Set the encryption key as the first statement
    "PRAGMA KEY = ${quoteString(key)}",
    // Include the default statements afterwards
    for (var statement in basePragmaStatements) statement
  ];
}