sqflite_helper 0.1.1 copy "sqflite_helper: ^0.1.1" to clipboard
sqflite_helper: ^0.1.1 copied to clipboard

A small library containing helpers to manage sqflite in flutter apps.

sqflite_helper #

A small library to properly open a sqflite DB and handle the migrations.

Features:

  • Uses transactions for all schema changes.
  • Almost identical interface to sqflite.openDatabase()

Example usage #

import 'package:sqflite_helper/sqflite_helper.dart';
import 'package:sqflite/sqflite.dart';

Database db = openMigratedDatabase("path/to/db.db", 
  [
    """CREATE TABLE mytable (name varchar);""",
    """ALTER TABLE mytable RENAME TO users;""",
  ]
);
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A small library containing helpers to manage sqflite in flutter apps.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, sqflite

More

Packages that depend on sqflite_helper