quds_db 0.0.3+3 copy "quds_db: ^0.0.3+3" to clipboard
quds_db: ^0.0.3+3 copied to clipboard

outdated

A sqflite expansion package that simplifies creating databases and tables, crud operations, queries with modelization

Quds Db #

Is an automated version of sqflite!

How to use #

1. To create a model

Model classes should extend DbModel class. Define the schema of your model, Supported field type:

Integers Strings DateTimes Others
IdField StringField DateTimeField (saved as num) BlobField
IntField DateTimeStringField (Saved as string) BoolField
NumField ColorField
DoubleField
class Note extends DbModel {
  var title = StringField(columnName: 'title');
  var content = StringField(columnName: 'content');
  var isImportant = BoolField(columnName: 'isImportant');
  var color = ColorField(columnName: 'color');

  @override
  List<FieldWithValue>? getFields() => [title, content, isImportant, color];
}

Note that: Every model has default fields:

  • id (Auto incremental integer field)
  • creationTime (automatically set once when created)
  • modificationTime (automatically set when created, and with every update operation)

#### 2. To create a table manager ``` class NotesProvider extends DbTableProvider
33
likes
0
points
8
downloads

Publisher

verified publisherquds.cc

Weekly Downloads

A sqflite expansion package that simplifies creating databases and tables, crud operations, queries with modelization

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, sqflite, sqflite_common, sqflite_common_ffi

More

Packages that depend on quds_db