flutter_boxer_sqflite 1.1.1 copy "flutter_boxer_sqflite: ^1.1.1" to clipboard
flutter_boxer_sqflite: ^1.1.1 copied to clipboard

Wrapper of package `sqflite`, support easy usage on query/insert/update/delete and batch/transaction

flutter_boxer_sqflite #

pub package

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 Boxer SQL api NOT wrapped by try-catch block, caller should handle exceptions by yourself, upload to Sentry etc.
  • The Boxer catch some FATAL error, caller can handle these error log using properties logger & onFatalError of BoxerLogger.

For windows & linux #

Just uncomment the codes under `/// For windows & linux` comments, there are 3 occurrences.

How to use #

  • Run example/lib/main.dart on mobile device or PC for more example usage.

Features and bugs #

Please feel free to: request new features and bugs at the issue tracker

6
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Wrapper of package `sqflite`, support easy usage on query/insert/update/delete and batch/transaction

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, sqflite, synchronized_call

More

Packages that depend on flutter_boxer_sqflite