DB class
Properties
-
connections
↔ Map<
String, DatabaseConnection> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
boot(
Core core) → void - Boot.
-
connection(
[String? connection]) → DBConnection? - Gets a Database connection instance.
-
delete(
String query, [List bindings = const []]) → Future< int> -
insert(
String query, [List bindings = const []]) → bool -
raw(
String query, [List bindings = const []]) → dynamic -
select(
String query, [List bindings = const []]) → RecordSet? -
setDefaultConnection(
String connection) → void - Set the default connection.
-
statement(
String query, [List bindings = const []]) → bool -
table(
String table) → QueryBuilder - Gets a query builder.
-
unprepared(
String query) → bool - Execute an unprepared statement.
-
update(
String query, [List bindings = const []]) → Future< int>