utils/utils library

Constants

sqflitePragmaDbDefensiveOff → const String
See:
sqflitePragmaPrefix → const String
Custom pragma prefix.
sqlCountColumn → const String
count column.

Properties

lockWarningCallback ↔ (void Function()?)
Deprecated since 1.1.7+.
getter/setter pair
lockWarningDuration Duration?
Deprecated since 1.1.7+.
getter/setter pair

Functions

firstIntValue(List<Map<String, Object?>> list) int?
helper to get the first int value in a query Useful for COUNT(*) queries
hex(List<int> bytes) String
Utility to encode a blob to allow blob query using 'hex(blob_field) = ?', Sqlite.hex(1,2,3)
setLockWarningInfo({Duration? duration, void callback()?}) → void
Change database lock behavior mechanism.