{"id":37213291,"url":"https://github.com/winebarrel/qrev","last_synced_at":"2026-01-15T00:36:14.984Z","repository":{"id":318721699,"uuid":"1073995602","full_name":"winebarrel/qrev","owner":"winebarrel","description":"qrev is a SQL execution history management tool.","archived":false,"fork":false,"pushed_at":"2025-12-28T13:12:43.000Z","size":153,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-29T22:50:19.065Z","etag":null,"topics":["database","golang","mysql","postgresql","sqlite"],"latest_commit_sha":null,"homepage":"","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/winebarrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-11T00:51:57.000Z","updated_at":"2025-12-11T05:57:49.000Z","dependencies_parsed_at":"2025-12-10T05:07:57.159Z","dependency_job_id":null,"html_url":"https://github.com/winebarrel/qrev","commit_stats":null,"previous_names":["winebarrel/qrev"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/winebarrel/qrev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fqrev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fqrev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fqrev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fqrev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/qrev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fqrev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","golang","mysql","postgresql","sqlite"],"created_at":"2026-01-15T00:36:14.408Z","updated_at":"2026-01-15T00:36:14.975Z","avatar_url":"https://github.com/winebarrel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qrev\n\n[![test](https://github.com/winebarrel/qrev/actions/workflows/test.yml/badge.svg)](https://github.com/winebarrel/qrev/actions/workflows/test.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/winebarrel/qrev)](https://goreportcard.com/report/github.com/winebarrel/qrev)\n\nqrev is a SQL execution history management tool.\n\n![](https://github.com/user-attachments/assets/f7ef2da9-b140-4ac8-aeaa-fc5623c6ef3c)\n\n## Installation\n\n```sh\nbrew install winebarrel/qrev/qrev\n```\n\n## Usage\n\n```\nUsage: qrev --dsn=STRING \u003ccommand\u003e [flags]\n\nFlags:\n  -h, --help             Show context-sensitive help.\n  -d, --dsn=STRING       DSN for the database to connect to ($QREV_DSN).\n      --timeout=3m       Transaction timeout duration ($QREV_TIMEOUT).\n      --[no-]iam-auth    Use RDS IAM authentication ($QREV_IAM_AUTH).\n  -C, --[no-]color       Colorize output ($QREV_COLOR).\n      --version\n\nCommands:\n  apply --dsn=STRING [\u003cpath\u003e] [flags]\n    Apply SQL files to the database and record their execution history.\n\n  init --dsn=STRING [flags]\n    Initialize the SQL execution history table in the database.\n\n  mark --dsn=STRING \u003cstatus\u003e \u003cname\u003e [flags]\n    Manually mark the status of a SQL file (e.g., done, fail) in the history.\n\n  plan --dsn=STRING [\u003cpath\u003e] [flags]\n    Show the list of SQL files that are planned to be executed.\n\n  status --dsn=STRING [\u003cstatus-or-filename\u003e] [flags]\n    Display the execution status of SQL files, optionally filtered by status or\n    filename.\n\nRun \"qrev \u003ccommand\u003e --help\" for more information on a command.\n```\n\n```\n$ echo 'SELECT 1' \u003e 001.sql\n$ echo 'SELECT now()' \u003e 002.sql\n$ echo 'SELECT CURRENT_DATE' \u003e 003.sql\n$ export QREV_DSN='file:test.db'\n\n$ qrev init\nqrev_history table has been created\n\n$ qrev status\nNo SQL history\n\n$ qrev plan\n001.sql SELECT 1\n002.sql SELECT now()\n003.sql SELECT CURRENT_DATE\n\n$ qrev apply\ndone 001.sql SELECT 1\nfail 002.sql SELECT now()\n│ SQL logic error: no such function: now (1)\nqrev: error: SQL fails\n\n$ qrev status --show-error\nOct 12 15:40 done a0a22c9 001.sql\nOct 12 15:40 fail df4776a 002.sql\n│ SQL logic error: no such function: now (1)\n\n$ qrev plan --if-modified\n003.sql SELECT CURRENT_DATE\n\n$ echo 'SELECT CURRENT_TIMESTAMP' \u003e 002.sql\n$ qrev plan --if-modified\n002.sql* SELECT CURRENT_TIMESTAMP\n003.sql SELECT CURRENT_DATE\n\n$ qrev apply --if-modified\ndone 002.sql SELECT CURRENT_TIMESTAMP\ndone 003.sql SELECT CURRENT_DATE\n\n$ qrev apply --if-modified\nNo SQL file to run\n\n$ qrev status\nOct 12 15:40 done a0a22c9 001.sql\nOct 12 15:40 done 45fb14e 002.sql\nOct 12 15:40 done e8d881b 003.sql\n```\n\n### DSN\n\n* MySQL: https://pkg.go.dev/github.com/go-sql-driver/mysql#readme-dsn-data-source-name\n* PostgreSQL: https://pkg.go.dev/github.com/jackc/pgx/v5/stdlib#pkg-overview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fqrev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fqrev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fqrev/lists"}