Driver class abstract
A Driver is a software component enabling a Connection to a database.
數據庫驅動接口,提供兩個方法:
- 給定 url 的格式,通過 url 格式來確定使用的驅動
- 通過 url 和 properties 來創建一個 Connection
数据库驱动接口,提供两个方法:
- 给定 url 的格式,通过 url 格式来确定使用的驱动
- 通过 url 和 properties 来创建一个 Connection
- Mixed-in types
- Implementers
Constructors
Properties
- dataSource ↔ DataSource?
-
数据源
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptsURL(
String url) → bool - Retrieves whether the driver thinks that it can open a connection to the given URL.
-
connect(
String url, {Map< String, dynamic> properties}) → Future<Connection> - Attempts to make a database connection to the given URL.
-
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