{"id":19840046,"url":"https://github.com/kwakwaversal/test-postgresql-sqitch","last_synced_at":"2026-06-10T11:32:07.152Z","repository":{"id":71116640,"uuid":"107898019","full_name":"kwakwaversal/test-postgresql-sqitch","owner":"kwakwaversal","description":"Test PostgreSQL features to make sure they do what's expected - the http://sqitch.org/ way!","archived":false,"fork":false,"pushed_at":"2020-06-04T08:39:04.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T22:21:45.957Z","etag":null,"topics":["postgresql","sqitch"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kwakwaversal.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"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":"2017-10-22T19:56:18.000Z","updated_at":"2023-01-11T10:30:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"95ecf743-a2cc-41eb-9d2f-f66620efc5d7","html_url":"https://github.com/kwakwaversal/test-postgresql-sqitch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kwakwaversal/test-postgresql-sqitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwakwaversal%2Ftest-postgresql-sqitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwakwaversal%2Ftest-postgresql-sqitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwakwaversal%2Ftest-postgresql-sqitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwakwaversal%2Ftest-postgresql-sqitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwakwaversal","download_url":"https://codeload.github.com/kwakwaversal/test-postgresql-sqitch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwakwaversal%2Ftest-postgresql-sqitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34151274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["postgresql","sqitch"],"created_at":"2024-11-12T12:25:24.929Z","updated_at":"2026-06-10T11:32:07.132Z","avatar_url":"https://github.com/kwakwaversal.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-postgresql-sqitch [![Build Status](https://travis-ci.org/kwakwaversal/test-postgresql-sqitch.svg?branch=master)](https://travis-ci.org/kwakwaversal/test-postgresql-sqitch)\nTest PostgreSQL features to make sure they do what's expected\n\n# Description\nOver time there have been PostgreSQL-specific features I've wanted to check.\nThe first one was to make sure [citext] was doing what I expect it to do.\n\nN.B., I am using [Sqitch] for testing.\n\n# Tests\n\n## [citext]\nThe [citext] module provides a case-insensitive character string type, `citext`.\nEssentially, it internally calls `lower()` when comparing values. Otherwise, it\nbehaves almost exactly like `text`.\n\nThe tests make sure it does this, and that an index is used appropriately.\n\n## [constraints]\nMakes sure that constraints are doing what I expect them to do. This is not\ncomplete, but I will expand on the tests as and when I need them.\n\n# Using Sqitch\nThis repository is also an excuse for me to use [Sqitch]. Sqitch is a database\nchange management application. The `verify` feature makes it particularly useful\nwhen combined with [Github] and [Travis].\n\nN.B., It is *not* best practice to use [Sqitch] in this way because the `verify`\ncommand should contain tests without any regard for data.\n\n## Commands\nInitialise a new project.\n\n```\nsqitch init testing --uri https://github.com/kwakwaversal/test-postgresql-sqitch --engine pg\n```\n\nTell [Sqitch] who we are (used for the plan's audit trail). The `--user` flag\nmeans that this particular config will be written to the executing user's\n`~/.sqitch/sqitch.conf` file.\n\n```\nsqitch config --user user.name 'Paul Williams'\nsqitch config --user user.email 'kwakwaversal@...'\n```\n\nAdd a new database *change*.\n\n```\nsqitch add extensions -n 'Add Pg extensions (CITEXT)'\nsqitch add citext --requires extensions -n 'Add CITEXT test'\n```\n\n### Deploy, Verify, Revert\nThese commands assume you're running them from within the vagrant VM which is\nprovisioned from the `Vagrantfile`.\n\n```\nsqitch deploy db:pg://super_sqitch_user:password@localhost/sqitch\nsqitch verify db:pg://super_sqitch_user:password@localhost/sqitch\nsqitch revert db:pg://super_sqitch_user:password@localhost/sqitch\n```\n\n# References\n* [Sqitch turorial](https://metacpan.org/pod/distribution/App-Sqitch/lib/sqitchtutorial.pod)\n* [Default Pg constraint names](https://stackoverflow.com/a/4108266/1182273)\n* [Managing key/value pairs](https://justatheory.com/2010/08/postgres-key-value-pairs/)\n\n[citext]: https://www.postgresql.org/docs/current/static/citext.html\n[constraints]: https://www.postgresql.org/docs/current/static/ddl-constraints.html\n[Github]: https://github.com/\n[Sqitch]: http://sqitch.org/\n[Travis]: https://travis-ci.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwakwaversal%2Ftest-postgresql-sqitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwakwaversal%2Ftest-postgresql-sqitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwakwaversal%2Ftest-postgresql-sqitch/lists"}