All Projects → flutterings → sqflite_migration

flutterings / sqflite_migration

Licence: other
Library to manage sqlite db migrations.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to sqflite migration

flutter-Anniversary
一款界面优美,功能简洁的纪念日APP
Stars: ✭ 57 (+42.5%)
Mutual labels:  sqflite, sqflite-database
migrate
A simple database migration tool.
Stars: ✭ 38 (-5%)
Mutual labels:  database-migrations
Pi Temp
Web server using a Raspberry Pi and DHT22 sensor to graph the humidity and temperature in my apartment over time.
Stars: ✭ 114 (+185%)
Mutual labels:  sqlite-database
SeLite
Automated database-enabled navigation ✔️ of web applications
Stars: ✭ 34 (-15%)
Mutual labels:  sqlite-database
Sandman2
Automatically generate a RESTful API service for your legacy database. No code required!
Stars: ✭ 1,765 (+4312.5%)
Mutual labels:  sqlite-database
AndroidEasySQL-Library
An Easier & Lazier approach to SQL database for Android
Stars: ✭ 28 (-30%)
Mutual labels:  sqlite-database
Kirby3 Autoid
Automatic unique ID for Pages, Files and Structures including performant helpers to retrieve them. Bonus: Tiny-URL.
Stars: ✭ 58 (+45%)
Mutual labels:  sqlite-database
sqlite-analyzer
Code generation for Java/Android database access.
Stars: ✭ 63 (+57.5%)
Mutual labels:  sqlite-database
r2dbc-migrate
R2DBC database migration tool & library
Stars: ✭ 83 (+107.5%)
Mutual labels:  database-migrations
Sqfentity
SqfEntity ORM for Flutter/Dart lets you build and execute SQL commands on SQLite database easily and quickly with the help of fluent methods similar to .Net Entity Framework. SqfEntity also generates add/edit forms with validations and special controls (DropDown List, DateTime pickers, Checkboxes.. etc) for your table.
Stars: ✭ 237 (+492.5%)
Mutual labels:  sqlite-database
Iosdebugdatabase
make it easy to debug databases in iOS applications iOS debug database
Stars: ✭ 219 (+447.5%)
Mutual labels:  sqlite-database
Crystdb
CrystDB is a thread-safe and convenient Object Relational Mapping database that based on SQLite.
Stars: ✭ 146 (+265%)
Mutual labels:  sqlite-database
database-migrations-dotnet
A code example showing 5 ways to manage database schema in .NET
Stars: ✭ 44 (+10%)
Mutual labels:  database-migrations
Microservices With Lumen
A Lumen based microservice ready to deploy with guzzle for consumption of api and OAuth 2
Stars: ✭ 115 (+187.5%)
Mutual labels:  sqlite-database
migrations
Migrations is a database migration tool that uses go's database/sql from the standard library
Stars: ✭ 17 (-57.5%)
Mutual labels:  database-migrations
Booklibrary
📚Simple Book library application written on flask with SQLite database.
Stars: ✭ 98 (+145%)
Mutual labels:  sqlite-database
Pssqlite
PowerShell module to query SQLite databases
Stars: ✭ 184 (+360%)
Mutual labels:  sqlite-database
DBFlowManager
A quick and easy database manager plugin library for your DBFlow databases.
Stars: ✭ 26 (-35%)
Mutual labels:  sqlite-database
migrant
Migration management for PostgreSQL/SQLite/MySQL
Stars: ✭ 85 (+112.5%)
Mutual labels:  database-migrations
flyway-ant
Flyway Ant tasks
Stars: ✭ 14 (-65%)
Mutual labels:  database-migrations

Build Status codecov

Migrate your mobile sqlite database

Library to manage sqlite db migrations using sqflite plugin.

Getting Started

import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart';
import 'package:sqflite_migration/sqflite_migration.dart';

final initialScript = [
  '''
create table _todo_list (
  id integer primary key autoincrement,
  alias text not null
  )
''',
  '''
create table _task (
  id integer primary key autoincrement,
  description text,
  todo_list_id integer not null,
  CONSTRAINT fk_todo_lists
    FOREIGN KEY (todo_list_id)
    REFERENCES _todo_list(id)
);
'''
];

final migrations = [
  '''
  alter table _task add column done integer default 0;
  '''
];

final config = MigrationConfig(initializationScript: initialScript, migrationScripts: migrations);

Future<Database> open() async {
 final databasesPath = await getDatabasesPath();
 final path = join(databasesPath, 'test.db');
 
 return await openDatabaseWithMigration(path, config);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].