{"id":16193583,"url":"https://github.com/pyramation/pg-units","last_synced_at":"2026-01-20T11:32:24.308Z","repository":{"id":66351116,"uuid":"298753258","full_name":"pyramation/pg-units","owner":"pyramation","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-12T03:46:29.000Z","size":658,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T15:19:36.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pyramation.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2020-09-26T06:34:35.000Z","updated_at":"2021-03-04T01:30:48.000Z","dependencies_parsed_at":"2023-02-21T16:00:28.199Z","dependency_job_id":null,"html_url":"https://github.com/pyramation/pg-units","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pyramation/pg-units","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpg-units","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpg-units/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpg-units/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpg-units/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyramation","download_url":"https://codeload.github.com/pyramation/pg-units/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fpg-units/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: 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":[],"created_at":"2024-10-10T08:15:36.435Z","updated_at":"2026-01-20T11:32:24.285Z","avatar_url":"https://github.com/pyramation.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# start the postgres db process\n\nFirst you'll want to start the postgres docker (you can also just use `docker-compose up -d`):\n\n```sh\nmake up\n```\n\n# install modules\n\nInstall modules\n\n```sh\nyarn install\n```\n\n# install the Postgres extensions\n\nNow that the postgres process is running, install the extensions:\n\n```sh\nmake install\n```\n\nThis basically `ssh`s into the postgres instance with the `packages/` folder mounted as a volume, and installs the bundled sql code as pgxn extensions.\n\n# testing\n\nTesting will load all your latest sql changes and create fresh, populated databases for each sqitch module in `packages/`.\n\n```sh\nyarn test:watch\n```\n\n# building new modules\n\nCreate a new folder in `packages/`\n\n```sh\nlql init\n```\n\nThen, run a generator:\n\n```sh\nlql generate\n```\n\nYou can also add arguments if you already know what you want to do:\n\n```sh\nlql generate schema --schema myschema\nlql generate table --schema myschema --table mytable\n```\n\n# deploy code as extensions\n\n`cd` into `packages/\u003cmodule\u003e`, and run `lql package`. This will make an sql file in `packages/\u003cmodule\u003e/sql/` used for `CREATE EXTENSION` calls to install your sqitch module as an extension.\n\n# recursive deploy\n\nYou can also deploy all modules utilizing versioning as sqtich modules. Remove `--createdb` if you already created your db:\n\n```sh\nlql deploy awesome-db --yes --recursive --createdb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fpg-units","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyramation%2Fpg-units","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fpg-units/lists"}