sqflite_helper 0.1.1

Flutter Android iOS

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
70
pub points
0%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

k.l.kubat@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, sqflite

More

Packages that depend on sqflite_helper