sqlcool2 library

A library to use Sqflite with ease

Classes

DatabaseChangeEvent
A database change event. Used by the changefeed
Db
A class to handle database operations
DbColumn
A database column representation
DbModel
The database model class to extend
DbRecord<T>
A database record
DbRow
A database row
DbSchema
The database schema representation
DbTable
The class used to create tables
SelectBloc
A ready to use select bloc
SqlDb
A Sqlite database
SqlSelectBloc
A ready to use select bloc

Enums

DatabaseChange
Types of database changes
DbColumnType
The type of a database column
OnDelete
types of on delete actions for foreign keys

Functions

onDeleteToString(OnDelete onDelete) String?
Convert an on delete constraint to a string
stringToOnDelete(String value) OnDelete
Convert a string to an on delete constraint

Exceptions / Errors

DatabaseAssetProblem
An exception for reading or writing a database asset
DatabaseNotReady
An exception for when the database is not ready
OnDeleteConstraintUnknown
An exception for an error on the onDelete constraint in a foreigh key for a table schema
RawQueryException
An exception for a raw query
ReadQueryException
An exception for a read query
WriteQueryException
An exception for a write query