{"id":19005296,"url":"https://github.com/f3ath/migrant-db-sqlite","last_synced_at":"2026-02-18T12:02:29.220Z","repository":{"id":40486675,"uuid":"488831999","full_name":"f3ath/migrant-db-sqlite","owner":"f3ath","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-11T00:14:17.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T11:02:31.215Z","etag":null,"topics":["dart","flutter","migration","migration-tool","sqlite"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/migrant_db_sqlite","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f3ath.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-05T04:33:03.000Z","updated_at":"2024-08-11T00:14:05.000Z","dependencies_parsed_at":"2024-11-08T18:31:47.377Z","dependency_job_id":null,"html_url":"https://github.com/f3ath/migrant-db-sqlite","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"667f779b976dbb098a5ae3a47a3c0e19d55b47aa"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f3ath","download_url":"https://codeload.github.com/f3ath/migrant-db-sqlite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246821490,"owners_count":20839440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","migration","migration-tool","sqlite"],"created_at":"2024-11-08T18:27:02.724Z","updated_at":"2025-10-13T11:07:05.748Z","avatar_url":"https://github.com/f3ath.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"SQLite gateway for [migrant](https://pub.dev/packages/migrant).\n\nExample:\n\n```dart\nimport 'package:migrant/migrant.dart';\nimport 'package:migrant/testing.dart';\nimport 'package:migrant_db_sqlite/migrant_db_sqlite.dart';\nimport 'package:sqflite_common/sqlite_api.dart' show inMemoryDatabasePath;\nimport 'package:sqflite_common_ffi/sqflite_ffi.dart' show databaseFactoryFfi;\n\nFuture\u003cvoid\u003e main() async {\n  // These are the migrations. We are using a simple in-memory source,\n  // but you may read them from other sources: local filesystem, network, etc.\n  // More options at https://pub.dev/packages/migrant\n  final migrations = InMemory([\n    Migration('0001', ['CREATE TABLE foo (id TEXT NOT NULL PRIMARY KEY);']),\n    Migration('0002', ['ALTER TABLE foo ADD COLUMN message TEXT;']),\n    // Try adding more stuff here and running this example again.\n  ]);\n\n  // The SQLite connection. We're using a local file.\n  var connection = await databaseFactoryFfi.openDatabase(inMemoryDatabasePath);\n\n  // The gateway is provided by this package.\n  final gateway = SQLiteGateway(connection);\n\n  // Applying migrations.\n  await Database(gateway).upgrade(migrations);\n  // At this point the table \"foo\" is ready.\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3ath%2Fmigrant-db-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff3ath%2Fmigrant-db-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3ath%2Fmigrant-db-sqlite/lists"}