Adapter<ConnType> class abstract

Adapter interface that must be implemented to support new databases

Implementers

Constructors

Adapter()

Properties

connection → ConnType
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

alter(Alter statement) Future<void>
close() Future<void>
Closes the connection
connect() Future<void>
Makes a new connection to database
createDatabase(CreateDb statement) Future<void>
Create the database
createTable(Create statement) Future<void>
Creates the table
dropDb(DropDb st) Future<void>
Drops tables from database
dropTable(Drop st) Future<void>
Drops tables from database
find(Find statement) Future<List<Map<String, dynamic>>>
Returns a list of rows found by executing statement
findOne(Find statement) Future<Map<String, dynamic>?>
Returns a row found by executing statement
insert<T>(Insert statement) Future<T>
Executes the insert statement and returns the primary key of inserted row
insertMany<T>(InsertMany statement) Future<void>
Executes the insert statement for many element
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseValue<T>(dynamic v) → T
Parses values coming from database into Dart values
remove(Remove statement) Future<int>
Deletes the requested row
toString() String
A string representation of this object.
inherited
update(Update statement) Future<int>
Updates the row and returns the number of rows updated
updateMany(UpdateMany statement) Future<void>
Updates many rows
upsert<T>(Upsert statement) Future<T>
Executes the insert or update statement and returns the primary key of inserted row
upsertMany<T>(UpsertMany statement) Future<void>
Executes bulk insert or update statement

Operators

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