{"id":13863039,"url":"https://github.com/alex-hhh/emacs-sql-indent","last_synced_at":"2025-10-09T15:21:14.278Z","repository":{"id":3076759,"uuid":"48367682","full_name":"alex-hhh/emacs-sql-indent","owner":"alex-hhh","description":"Syntax based indentation for SQL files inside GNU Emacs","archived":false,"fork":false,"pushed_at":"2024-11-09T00:22:23.000Z","size":389,"stargazers_count":124,"open_issues_count":2,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-12T09:10:54.252Z","etag":null,"topics":["emacs","emacs-lisp","sql"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alex-hhh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2015-12-21T11:15:41.000Z","updated_at":"2025-09-03T08:00:19.000Z","dependencies_parsed_at":"2024-08-05T06:06:08.512Z","dependency_job_id":"37fe1f2d-5eec-48db-a50a-7991f94f1228","html_url":"https://github.com/alex-hhh/emacs-sql-indent","commit_stats":{"total_commits":143,"total_committers":8,"mean_commits":17.875,"dds":0.3706293706293706,"last_synced_commit":"d6f451dc09fb1a6f38a8327cf46ef246431afbd9"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/alex-hhh/emacs-sql-indent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-hhh%2Femacs-sql-indent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-hhh%2Femacs-sql-indent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-hhh%2Femacs-sql-indent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-hhh%2Femacs-sql-indent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-hhh","download_url":"https://codeload.github.com/alex-hhh/emacs-sql-indent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-hhh%2Femacs-sql-indent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001643,"owners_count":26083146,"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-10-09T02:00:07.460Z","response_time":59,"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":["emacs","emacs-lisp","sql"],"created_at":"2024-08-05T06:02:00.359Z","updated_at":"2025-10-09T15:21:14.249Z","avatar_url":"https://github.com/alex-hhh.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"# Syntax based indentation for SQL files for GNU Emacs\n\n![CI](https://github.com/alex-hhh/emacs-sql-indent/workflows/CI/badge.svg)\n\nsql-indent.el is a GNU Emacs minor mode which adds support for syntax-based\nindentation when editing SQL code: TAB indents the current line based on the\nsyntax of the SQL code on previous lines.  This works like the indentation for\nC and C++ code.\n\nThe package also defines align rules so that the `align` function works for\nSQL statements, see `sqlind-align-rules` for which rules are defined.  This\ncan be used to align multiple lines around equal signs or \"as\" statements,\nlike this.\n\n`sqlind-minor-mode` together with the align rules can assist in writing tidy\nSQL code or formatting existing SQL code.  The indentation rules are\ncustomizable and they can be adapted to match your coding style.\n\nSee the [manual](./sql-indent.org) for more details.\n\n# Installation\n\nYou can install a released version of this package\nfrom [GNU ELPA](http://elpa.gnu.org/packages/sql-indent.html), by running the\nfollowing commands in Emacs:\n\n    M-x package-install RET sql-indent RET\n\nTo install sql-indent from this repository, open the file `sql-indent.el` in\nEmacs and type:\n\n    M-x package-install-from-buffer RET\n\nThe syntax-based indentation of SQL code can be turned ON/OFF at any time by\nenabling or disabling `sqlind-minor-mode`:\n\n    M-x sqlind-minor-mode RET\n\nTo enable syntax-based indentation for every SQL buffer, you can add\n`sqlind-minor-mode` to `sql-mode-hook`.  First, bring up the customization\nbuffer using the command:\n\n    M-x customize-variable RET sql-mode-hook RET\n    \nThan, click on the \"INS\" button to add a new entry and put \"sqlind-minor-mode\"\nin the text field.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-hhh%2Femacs-sql-indent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-hhh%2Femacs-sql-indent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-hhh%2Femacs-sql-indent/lists"}