MySqlConnectionImpl class

Implemented types

Constructors

MySqlConnectionImpl(Duration _timeout, Comm _socket)

Properties

hashCode int
The hash code for this object.
no setterinherited
onDisconnect Future<void>
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

begin() Future<Transaction>
Creates and returns a new transaction.
override
close() Future<void>
Closes the connection
override
execute(String sql) StreamedFuture
Executes the given sql statement and returns the result.
override
executeFuture(String sql) Future<StreamedResults>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare(String sql) Future<Prepared>
override
prepared(String sql, Iterable values) Future<StreamedResults>
override
preparedWithAll(String sql, Iterable<Iterable> values) Stream<StreamedResults>
override
toString() String
A string representation of this object.
inherited
transaction(Future<void> work(Transaction transaction)) Future
Functional way to execute a transaction. This method takes care of creating and releasing the transaction.
override

Operators

operator ==(Object 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.
override