DatabaseConnection class
Constructors
- DatabaseConnection(String name, DatabaseDriverType driver, {required String database, String? charset, String? collation, String? host, String? password, int? port, String? url, String? username, bool dbForeignKeys = true, bool? secure, String timeZone = 'UTC'})
-
const
-
DatabaseConnection.fromJson(Map<
String, dynamic> connInfo) -
factory
Properties
- charset → String?
-
final
- collation → String?
-
final
- database → String
-
final
- dbForeignKeys → bool
-
final
- driver → DatabaseDriverType
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String?
-
final
- name → String
-
final
- password → String?
-
final
- port → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secure → bool?
-
final
- timeZone → String
-
final
- url → String?
-
final
- username → String?
-
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
Static Methods
-
getDriverType(
String driver) → DatabaseDriverType