Statement class

A statement interface provide general high level api to access common SQLite C API.

Properties

columns List<String>
return list of columns
no setter
columnsIndexes Map<String, int>
return the mapping index between column name and column index.
no setter
declarationTypes List<String?>
return list of declaration type of each column
no setter
hashCode int
The hash code for this object.
no setterinherited
initialState bool
return true if statement is reset back to a state after prepare from database.
no setter
isClosed bool
Check whether the statement is closed
no setter
native PtrStmt
get access to native c pointer
no setter
parameterCount int
The number of placeholder parameters in query.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Closes the statement.
exec({Iterable? parameters, bool reusable = false}) Future<Changes>
Executes a query such as INSERT or UPDATE with or without parameter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query<T>({Iterable? parameters, RowCreator<T>? creator}) Future<Rows<T>>
Executes a query such as SELECT with or without parameter.
read() → ReadStatement
To a read statement
reset() Future<void>
Reset statement back to it initialize state.
toString() String
A string representation of this object.
inherited
withNative(Future<void> block(PtrStmt)) Future<void>
Provide an access to c native pointer database in expose api is not enough.
write() → WriteStatement
To a write statement

Operators

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