MysqlAdapter class

Implemented types

Constructors

MysqlAdapter(String databaseName, { String username, String password, String host: 'localhost', int port: 3306 })
MysqlAdapter.FromConnection(MySqlConnection connection)

Properties

connection MySqlConnection
read-only, override
databaseName → String
final
host → String
final
password → String
final
port → int
final
username → String
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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