{"id":26372806,"url":"https://github.com/moedevelops/squeal","last_synced_at":"2026-01-04T11:02:32.631Z","repository":{"id":258992188,"uuid":"876130944","full_name":"MoeDevelops/squeal","owner":"MoeDevelops","description":"🗣️ SQL Formatter for Gleam","archived":false,"fork":false,"pushed_at":"2024-11-24T12:45:07.000Z","size":87,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T23:37:52.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Gleam","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/MoeDevelops.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":"2024-10-21T13:00:34.000Z","updated_at":"2024-11-24T12:45:11.000Z","dependencies_parsed_at":"2024-11-24T00:19:56.284Z","dependency_job_id":"5da2353f-a4c1-465a-b841-37fd89c53c7e","html_url":"https://github.com/MoeDevelops/squeal","commit_stats":null,"previous_names":["moedevelops/squeal"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoeDevelops%2Fsqueal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoeDevelops%2Fsqueal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoeDevelops%2Fsqueal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoeDevelops%2Fsqueal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoeDevelops","download_url":"https://codeload.github.com/MoeDevelops/squeal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955760,"owners_count":20374373,"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","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-03-17T01:19:24.332Z","updated_at":"2026-01-04T11:02:32.623Z","avatar_url":"https://github.com/MoeDevelops.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗣️ Squeal\n\n[![Package Version](https://img.shields.io/hexpm/v/squeal)](https://hex.pm/packages/squeal)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/squeal/)\n\n## Gleam SQL-Formatter using the js package [sql-formatter](https://github.com/sql-formatter-org/sql-formatter)\n\nSqueal formats all `*.sql` files in your current directory and subdirectories\n\n```sh\ngleam add --dev squeal@1\ngleam run -m squeal\ngleam run -m squeal -- --width=4 --identifiercase=lower --exclude=sql/do_not_format.sql\n```\n\n## Flags\n\n```string\n--exclude=\u003cSTRINGS\u003e\n--datatypecase=preserve|upper|lower\n--denseoperators=\u003cBOOL\u003e\n--dialect=sql|postgres|sqlite|mysql|mariasql\n--expressionwidth=\u003cINT\u003e\n--functioncase=preserve|upper|lower\n--identifiercase=preserve|upper|lower\n--indentstyle=standard|tableft|tabright\n--keywordcase=preserve|upper|lower\n--linesbetween=\u003cINT\u003e\n--logicalopnewline=\u003cBOOL\u003e\n--newlinesemi=\u003cBOOL\u003e\n--tabs=\u003cBOOL\u003e\n--width=\u003cINT\u003e\n```\n\n## Parameters\n\nIf you use parameters like\n\n```sql\nselect name from users where id = $1\n```\n\nyou need to configure the sql dialect\n\n```sh\ngleam run -m squeal -- --dialect=postgres\n```\n\n## Example\n\nSQL-File:\n\n```sql\nselect * FROM users\n```\n\nCommand:\n\n```sh\ngleam run -m squeal -- --width=4 --identifiercase=lower\n```\n\nSQL-File:\n\n```sql\nSELECT\n    *\nFROM\n    users\n```\n\nCommand:\n\n```sh\ngleam run -m squeal -- --width=2 --identifiercase=lower --keywordcase=lower\n```\n\nSQL-File:\n\n```sql\nselect\n  *\nfrom\n  users\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoedevelops%2Fsqueal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoedevelops%2Fsqueal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoedevelops%2Fsqueal/lists"}