Database class

Constructors

Database(Pointer<Sqlite3> db)
Database.open(String path)
factory

Properties

db ↔ Pointer<Sqlite3>
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
errMsg() → String
execute(String sql, [List<Object?> parameters = const []]) → void
executeAll(String sql) → void
run all , unlike execute which only runs the first statement.
getColFuncForType(int type) → dynamic Function(Pointer<Sqlite3Stmt>, int)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
select(String sql, [List<Object?> parameters = const []]) → List<Row>
selectOne(String sql, [List<Object?> parameters = const []]) → Row
selectOneT<T>(String sql, T f(Row), [List<Object?> parameters = const []]) → T
selectT<T>(String sql, List<T> f(List<Row>), [List<Object?> parameters = const []]) → List<T>
toString() → String
A string representation of this object.
inherited
transaction<T>(Future<T> func(Database)) → Future<T>
transactionSync<T>(T func(Database)) → T

Operators

operator ==(Object other) → bool
The equality operator.
inherited