{"id":24083257,"url":"https://github.com/mitranim/sublime-sql","last_synced_at":"2026-02-14T10:31:37.707Z","repository":{"id":82132140,"uuid":"330606598","full_name":"mitranim/sublime-sql","owner":"mitranim","description":"Sublime Text syntax definitions for SQL, rebuilt with better semantics. Currently only Postgres dialect.","archived":false,"fork":false,"pushed_at":"2022-11-30T14:40:37.000Z","size":90,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-11T14:55:35.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitranim.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-18T08:51:02.000Z","updated_at":"2023-08-01T09:09:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d970a9b-ff34-450c-b71b-787d5b74a422","html_url":"https://github.com/mitranim/sublime-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mitranim/sublime-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsublime-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsublime-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsublime-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsublime-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitranim","download_url":"https://codeload.github.com/mitranim/sublime-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsublime-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29442728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:17:46.583Z","status":"ssl_error","status_checked_at":"2026-02-14T10:17:22.534Z","response_time":53,"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":"2025-01-09T23:56:11.791Z","updated_at":"2026-02-14T10:31:37.702Z","avatar_url":"https://github.com/mitranim.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\nSublime Text syntax for Postgres SQL. Written in [SBNF](https://github.com/BenjaminSchaaf/sbnf):\n\n  * Source file: `pgsql.sbnf`.\n  * Auto-generated syntax: `pgsql.sublime-syntax`.\n\nDifferences from built-in \"SQL\" and Package Control packages \"PgSQL\" and \"PostgreSQL Syntax Highlighting\":\n\n* Contextual types.\n  * Types are scoped _only_ where expected.\n  * No whitelist of built-ins.\n  * No difference between pre-defined and user-defined types.\n* Conservative use of keywords.\n  * Only reserved keywords and extremely common keywords are context-free.\n  * Other keywords are contextual, where expected.\n* No unnecessary scopes for built-in functions or types.\n* Prefers to scope keywords as `keyword` rather than `storage`.\n* Adheres more closely to ST scope conventions while respecting SQL semantics.\n* Supports ordinal parameters like `$1` and named parameters like `:ident`.\n\nCurrent limitations:\n\n* Only the Postgres dialect is implemented.\n* Doesn't implement some non-reserved but common keywords such as `update` or `delete`.\n* Doesn't implement some contextual keywords such as `on update cascade`.\n* NYI: PL/PGSQL.\n* NYI: multi-word types.\n* NYI: function calls.\n* ... Probably a few more NYI.\n\nDespite the limitations, I consider this much more usable than the previously-mentioned packages.\n\n## Installation\n\nClone the repo and symlink it to your Sublime packages directory. Example for MacOS:\n\n```sh\ngit clone https://github.com/mitranim/sublime-sql.git\ncd sublime-sql\nln -sf \"$(pwd)\" \"$HOME/Library/Application Support/Sublime Text 3/Packages/\"\n```\n\nTo find the packages directory on your system, use Sublime Text menu → Preferences → Browse Packages.\n\n## TODO\n\n(Because I'll forget otherwise.)\n\n* More contextual keywords.\n* PL/PGSQL.\n* Better support for types.\n* A million other Postgres-specific things.\n\n## License\n\nhttps://unlicense.org\n\n## Misc\n\nI'm receptive to suggestions. If this package _almost_ satisfies you but needs changes, open an issue or chat me up. Contacts: https://mitranim.com/#contacts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Fsublime-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitranim%2Fsublime-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Fsublime-sql/lists"}