database library

Database connectivity for DartFrame (PostgreSQL, MySQL, SQLite).

Import this library to use SQL databases with DartFrame:

import 'package:dartframe/database.dart';

Classes

ConnectionPool
Connection pool for managing database connections
DatabaseConnection
Abstract base class for database connections
DatabaseReader
Database reader and writer utility class
DatabaseTransaction
Represents a database transaction
MySQLConnection
MySQL database connection implementation using mysql_client package
PostgreSQLConnection
PostgreSQL database connection implementation using postgres package
SQLiteConnection
SQLite database connection implementation using sqlite3 package

Extensions

DataFrameDatabase on DataFrame
Extension to add database write capabilities to DataFrame

Exceptions / Errors

DatabaseConnectionError
Exception thrown when database connection fails
DatabaseQueryError
Exception thrown when database query fails
DatabaseTransactionError
Exception thrown when database transaction fails
UnsupportedDatabaseError
Exception thrown when database type is not supported