sqflite_store 0.0.1 copy "sqflite_store: ^0.0.1" to clipboard
sqflite_store: ^0.0.1 copied to clipboard

sqflite store

sqflite_store #

Pub Version

Access your SQLite databases easily.

Getting Started #

sqflite_store is available through pub.dev.

Add the dependency to your pubspec.yaml:

dependencies:
  ...
  sqflite_store: ^0.0.1

Usage example #

Check the example folder

Register the database in the main.dart

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await registerDbAsset('assets/main.sqlite', key: 'db', copy: 'once');

  runApp(const MyApp());
}

Get the database using the key.

final db = await getDatabase('db');

The db object is a instance of sqflite database.

0
likes
140
points
5
downloads

Publisher

verified publisheraky.dev

Weekly Downloads

sqflite store

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path, sqflite

More

Packages that depend on sqflite_store