flutter_boxer_sqflite 1.0.9
flutter_boxer_sqflite: ^1.0.9 copied to clipboard
Wrapper of package `sqflite`, support easy usage on query/insert/update/delete and batch/transaction
flutter_boxer_sqflite #
A Wrapper of package sqflite, support easy usage on query/insert/update/delete and batch/transaction
Initialize #
````
# Create a boxer instance (generally it's a single instance)
BoxerDatabase boxer = BoxerDatabase(version: version, name: 'database.db');
# Register the tables
boxer.registerTable(BoxTableManager.bizCacheTable);
boxer.registerTable(BoxTableManager.bizCacheStudent);
# Open the database establish connection
await boxer.open();
````
About try-catch #
- The
BoxerSQL api NOT wrapped bytry-catchblock, caller should handle exceptions by yourself, upload toSentryetc. - The
Boxercatch some FATAL error, caller can handle these error log using propertieslogger&onFatalErrorofBoxerLogger.
For windows & linux #
Just uncomment the codes under `/// For windows & linux` comments, there are 3 occurrences.
How to use #
- Run
example/lib/main.darton mobile device or PC for more example usage.
Features and bugs #
Please feel free to: request new features and bugs at the issue tracker