{"id":21815284,"url":"https://github.com/db-journey/postgresql-driver","last_synced_at":"2025-07-26T03:07:21.779Z","repository":{"id":57484286,"uuid":"81149047","full_name":"db-journey/postgresql-driver","owner":"db-journey","description":"db-journey PostgreSQL driver","archived":false,"fork":false,"pushed_at":"2019-12-09T16:19:44.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T00:48:19.307Z","etag":null,"topics":["db","driver","golang","migrations","postgresql"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/db-journey.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}},"created_at":"2017-02-07T00:41:53.000Z","updated_at":"2019-12-09T16:19:26.000Z","dependencies_parsed_at":"2022-08-26T12:24:54.277Z","dependency_job_id":null,"html_url":"https://github.com/db-journey/postgresql-driver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/db-journey/postgresql-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-journey%2Fpostgresql-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-journey%2Fpostgresql-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-journey%2Fpostgresql-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-journey%2Fpostgresql-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/db-journey","download_url":"https://codeload.github.com/db-journey/postgresql-driver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-journey%2Fpostgresql-driver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267109973,"owners_count":24037629,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["db","driver","golang","migrations","postgresql"],"created_at":"2024-11-27T15:17:18.386Z","updated_at":"2025-07-26T03:07:21.754Z","avatar_url":"https://github.com/db-journey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Driver\n\n[![Build Status](https://travis-ci.org/db-journey/postgresql-driver.svg?branch=master)](https://travis-ci.org/db-journey/postgresql-driver)\n[![GoDoc](https://godoc.org/github.com/db-journey/journey?status.svg)](https://godoc.org/github.com/db-journey/journey)\n\n* Runs migrations in transactions.\n  That means that if a migration fails, it will be safely rolled back.\n* Tries to return helpful error messages.\n* Stores migration version details in table ``schema_migrations``.\n  This table will be auto-generated.\n\n\n## Usage\n\n```bash\njourney -url postgres://user@host:port/database -path ./db/migrations create add_field_to_table\njourney -url postgres://user@host:port/database -path ./db/migrations up\njourney help # for more info\n\n## Disable DDL transactions\n\nSome queries, like `alter type ... add value` cannot be executed inside a transaction block.\nSince all migrations are executed in a transaction block by default (per migration file), a special option must be specified inside the migration file:\n\n```sql\n-- disable_ddl_transaction\nalter type ...;\n```\n\nThe option `disable_ddl_transaction` must be in a sql comment of the first line of the migration file.\n\nPlease note that you can't put several `alter type ... add value ...` in a single file. Doing so will result in a `ERROR 25001: ALTER TYPE ... ADD cannot be executed from a function or multi-command string` sql exception during migration.\n\nSince the file will be executed without transaction, it's probably not a good idea to exec more than one statement anyway. If the last statement of the file fails, chances to run again the migration without error will be very limited.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb-journey%2Fpostgresql-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdb-journey%2Fpostgresql-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb-journey%2Fpostgresql-driver/lists"}