DB class
Constructors
Properties
- database ↔ String
-
getter/setter pair
- driver ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- host ↔ String
-
getter/setter pair
- password ↔ String
-
getter/setter pair
- port ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- username ↔ String
-
getter/setter pair
Methods
-
delete(
String sql, [List< Object?> ? values]) → Future<int> - Run a delete statement against the database.
-
insert(
String sql, [List< Object?> ? values]) → Future<int> - Run an insert statement against the database.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select(
String sql, [List< Object?> ? values]) → Future<List< Map< >String, dynamic> > - Run a select statement against the database.
-
statement(
String sql) → Future - Execute an SQL statement and return the boolean result.
-
table(
String table) → QueryBuilder - Get a query builder of the specified table.
-
toString(
) → String -
A string representation of this object.
inherited
-
unprepared(
String sql) → Future - Run a raw, unprepared query against the PDO connection.
-
update(
String sql, [List< Object?> ? values]) → Future<int> - Run an update statement against the database.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited