DB class


DB({required String database, String driver = 'mysql', String host = 'localhost', required String password, int port = 3306, required String username})


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


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.
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.
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.


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