DVMySqlDatabaseAdapter class

DV.Database on MySQL or MariaDB.

Statements go through prepare/execute, so a parameter is never interpolated into SQL — the same guarantee the Postgres adapter makes. ? is MySQL's own placeholder, so the adapter contract's SQL needs no translation at all here.

Implemented types
Available extensions

Constructors

DVMySqlDatabaseAdapter({String host = '127.0.0.1', int port = 3306, required String database, String user = 'root', String password = '', DVSslMode sslMode = DVSslMode.prefer, DVMySqlConnect? connector})

Properties

database → String
final
hashCode → int
The hash code for this object.
no setterinherited
host → String
final
password → String
final
port → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sslMode → DVSslMode
How much this connection insists on encryption.
final
user → String
final

Methods

classify(DVSchemaChange change) → Future<DVSchemaChangeClass?>
override
classify(DVSchemaChange change) → Future<DVSchemaChangeClass?>

Available on DVDatabaseAdapter, provided by the DVDatabaseAdapterSchemaClassification extension

close() → Future<void>
execute(String sql, [List<Object?>? params]) → Future<int>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String sql, [List<Object?>? params]) → Future<List<Map<String, Object?>>>
override
schemaRules() → Future<DVMySqlSchemaRules>
What each schema change costs on the server this adapter is connected to, read from the version it reports. A MariaDB server or anything but MySQL 8 classifies nothing, which the planner treats as blocking.
toString() → String
A string representation of this object.
inherited

Operators

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