0 purchases
depository
Depository — simple database #
Depository is a very simple database system that you can use to have a SQLite database within your app. It depends on the reflectable package and provides a simple system where you describe your data as something like this:
import 'package:depository/depository.dart';
@reflectable
class Person extends Entity {
@primary
@text String uuid;
@text String name;
@text String family;
@date DateTime birthday;
@nullable
@text String nickname;
// ...
}
copied to clipboard
And then it automatically creates a table as "Person" for you, with keys named "uuid" as the PRIMARY KEY.
Also it lets you query data from the database easily:
final results = await Person().queryWhere('name = "Pouya"');
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.