{"id":19005294,"url":"https://github.com/f3ath/migrant-db-postgresql","last_synced_at":"2025-07-19T09:36:50.702Z","repository":{"id":40486384,"uuid":"487432755","full_name":"f3ath/migrant-db-postgresql","owner":"f3ath","description":"PostgreSQL gateway for migrant.","archived":false,"fork":false,"pushed_at":"2024-09-15T01:53:47.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T18:59:53.763Z","etag":null,"topics":["dart","migration","migration-tool","postgresql"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/migrant_db_postgresql","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-01T03:06:19.000Z","updated_at":"2025-03-28T19:16:17.000Z","dependencies_parsed_at":"2024-09-15T07:48:03.306Z","dependency_job_id":"f49c46ff-216a-4ca1-8424-7a1544c33ba1","html_url":"https://github.com/f3ath/migrant-db-postgresql","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"be101120c98c0b63aa100ffbdac2a688e13b9195"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/f3ath/migrant-db-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f3ath","download_url":"https://codeload.github.com/f3ath/migrant-db-postgresql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3ath%2Fmigrant-db-postgresql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265910180,"owners_count":23847518,"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","migration","migration-tool","postgresql"],"created_at":"2024-11-08T18:27:02.461Z","updated_at":"2025-07-19T09:36:50.674Z","avatar_url":"https://github.com/f3ath.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"PostgreSQL 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_postgresql/migrant_db_postgresql.dart';\nimport 'package:postgres/postgres.dart';\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 postgres connection. To make it work, you need an actual server.\n  // Try it with Docker:\n  // docker run -d -p 5432:5432 --name my-postgres -e POSTGRES_PASSWORD=postgres postgres\n  final connection = await Connection.open(\n      Endpoint(\n        host: 'localhost',\n        database: 'postgres',\n        username: 'postgres',\n        password: 'postgres',\n      ),\n      settings: ConnectionSettings(sslMode: SslMode.disable));\n\n  // The gateway is provided by this package.\n  final gateway = PostgreSQLGateway(connection);\n\n  // Applying migrations.\n  await Database(gateway).upgrade(migrations);\n\n  // At this point the table \"foo\" is ready. We're done.\n  await connection.close();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3ath%2Fmigrant-db-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff3ath%2Fmigrant-db-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3ath%2Fmigrant-db-postgresql/lists"}