MySqlConnection class

A connection to MySql or MariaDb database.

Use connect to open a connection. You must call close when you are done.

Implemented types
Implementers

Constructors

MySqlConnection()

Properties

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

begin() → Future<Transaction>
close() → Future<void>
transaction(Future<void> work(Transaction transaction)) → Future<void>
execute(String sql) → Future<StreamedResults>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
prepare(String sql) → Future<Prepared>
inherited
prepared(String sql, Iterable values) → Future<StreamedResults>
inherited
preparedWithAll(String sql, Iterable<Iterable> values) → Future<Stream<StreamedResults>>
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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

Static Methods

connect(ConnectionSettings c) → Future<MySqlConnection>
Connects to a MySQL server at the given host on port, authenticates using user and password and connects to db.