{"id":14070467,"url":"https://github.com/pyramation/skitch","last_synced_at":"2025-09-06T10:44:00.752Z","repository":{"id":66351152,"uuid":"150177702","full_name":"pyramation/skitch","owner":"pyramation","description":"build versioned PostgreSQL apps fast","archived":false,"fork":false,"pushed_at":"2020-07-01T01:36:03.000Z","size":11661,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T21:32:39.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pyramation.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}},"created_at":"2018-09-24T22:44:51.000Z","updated_at":"2024-01-13T23:58:53.000Z","dependencies_parsed_at":"2023-02-26T23:15:51.244Z","dependency_job_id":null,"html_url":"https://github.com/pyramation/skitch","commit_stats":null,"previous_names":[],"tags_count":376,"template":false,"template_full_name":null,"purl":"pkg:github/pyramation/skitch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fskitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fskitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fskitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fskitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyramation","download_url":"https://codeload.github.com/pyramation/skitch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fskitch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273892841,"owners_count":25186561,"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-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2024-08-13T07:07:47.173Z","updated_at":"2025-09-06T10:44:00.701Z","avatar_url":"https://github.com/pyramation.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# skitch\n\n[![Build Status](https://travis-ci.org/AirPageInc/skitch.svg?branch=master)](https://travis-ci.org/AirPageInc/skitch)\n\nCreate PostgreSQL sql code quickly and in a streamlined, versioned workflow.\n\n`skitch` is a wrapper around `sqitch` to enable a sane workflow for sane database management.\n\n* write and deploy extensions that can be installed with `CREATE EXTENSION`\n* optionally deploy same source as `sqitch` modules (since some managed db providers don't allow custom extensions)\n* write/deploy a project full of many `sqitch` modules that cross-reference each other using dependency resolution for running deploy command in proper order, etc\n* pulling modules down (currently via npm) to make re-usability super easy\n\n![Skitch](/skitch.gif?raw=true \"Skitch in Action\")\n\n## installation\n\n#### Install `psql`\n\nInstall `psql` without actually running the database. On mac you can use\n\n`brew install libpq`\n\nOr you can install the full-blown postgres locally, but it is recommended that you shut the service down. You'll be using `psql` to connect to the postgres that runs inside of a docker container.\n\n#### Install sqitch\n\nhttps://sqitch.org/\nmac users can use brew: https://github.com/sqitchers/homebrew-sqitch\n\n#### Install the Template library from http://www.tt2.org/\n\n```sh\nsudo cpan Template\n```\n\n#### Install `skitch` globally\n\n```sh\nnpm install -g skitch\n```\n\n#### Get the verification utils\n\nhttps://github.com/pyramation/pg-utils\n\n## getting started\n\nInitialize a project\n\n```sh\nskitch init --bare\nskitch install\n```\n\nNow you should have a `packages/` folder\n\n```sh\ncd packages/\nmkdir myfirstmodule\ncd myfirstmodule/\nskitch init\n```\n\nNow you can create some `sql` using `sqitch`!\n\n```sh\nskitch generate schema\nskitch generate table\n```\n\nDeploy recursively, using all the required modules!\n\n```sh\nskitch deploy --createdb --recursive\n```\n\n## testing\n\nTo create a test, first cd into a sqitch module\n\n```sh\ncd packages/myfirstmodule\nskitch maketest\n```\n\nThen you can use `jest` via `yarn` to test your logic.\n\n```sh\nyarn test:watch\n```\n\n## what's different\n\n* interactive shell\n* naming conventions\n* utility functions to create verify/revert functions for most types\n* bundled with templates for most common things:\n\n```\ncolumn\nextension\nfixture\nforeignKey\nfullPolicy\ngrantAllTables\ngrantExecute\ngrantRole\ngrantSchema\ngrantTable\nindex\npolicy\nprocedure\nrole\nrowLevelSecurity\nschema\ntable\ntimestamps\ntrigger\ntype\nuniqueIndex\nutility\nview\n```\n\n## bundle an npm module\n\nYou can install an npm module and then bundle it for `plv8`\n\n```sh\nyarn add my-awesome-npm-module\nskitch bundle my-awesome-npm-module awesomeThing\n```\n\n## Install some existing packages\n\n```sh\nskitch install skitch-extension-verify\nskitch install skitch-extension-jobs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fskitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyramation%2Fskitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fskitch/lists"}