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;""",
]
);