sqflite_helper 0.1.0 sqflite_helper: ^0.1.0 copied to clipboard
A small library container helpers to manage sqlite 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;""",
]
);