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