MysqlOptions class

Configuration for one owned MySQL connection.

The driver queues complete connection leases and configures UTC, strict SQL modes, and autocommit. Additional drivers provide independent concurrency.

Implementers

Constructors

MysqlOptions({required Uri url, MysqlTls tls = MysqlTls.verifyFull, Duration connectTimeout = const Duration(seconds: 10), Duration queryTimeout = const Duration(seconds: 30), SecurityContext? securityContext})
Creates connection configuration; the driver validates it when opened.
const

Properties

connectTimeout Duration
Deadline for opening and configuring the connection.
final
hashCode int
The hash code for this object.
no setterinherited
queryTimeout Duration
Default statement deadline, overridable for each execution.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityContext SecurityContext?
Optional trust roots or client credentials for TLS.
final
tls MysqlTls
Transport policy; certificate verification is enabled by default.
final
url Uri
A database URL with one database path segment and no query or fragment.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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