{"id":17166713,"url":"https://github.com/willf/sql-format","last_synced_at":"2025-03-24T18:15:41.280Z","repository":{"id":66569856,"uuid":"488721775","full_name":"willf/sql-format","owner":"willf","description":"Using sqlparse's formatter from the command line","archived":false,"fork":false,"pushed_at":"2023-06-08T15:08:46.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:52:26.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/willf.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":"2022-05-04T19:39:29.000Z","updated_at":"2022-05-04T19:47:16.000Z","dependencies_parsed_at":"2023-07-14T03:30:37.741Z","dependency_job_id":null,"html_url":"https://github.com/willf/sql-format","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsql-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsql-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsql-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Fsql-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willf","download_url":"https://codeload.github.com/willf/sql-format/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245325221,"owners_count":20596818,"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":"2024-10-14T23:06:28.069Z","updated_at":"2025-03-24T18:15:41.274Z","avatar_url":"https://github.com/willf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL-FORMAT\n\n## Installation\n\n```bash\npoetry install\n```\n\n## Running\n\n```bash\n❯ script/sql-format --help\nusage: sql-format [-h] [-f FILE] [-kc KEYWORD_CASE] [-ic IDENTIFIER_CASE] [-sc STRIP_COMMENTS] [-ri REINDENT] [-ra REINDENT_ALIGNED]\n                  [-us USE_SPACE_AROUND_OPERATORS] [-it INDENT_TABS] [-iw INDENT_WIDTH] [-wa WRAP_AFTER] [-of OUTPUT_FORMAT] [-cf COMMA_FIRST]\n\nFormat SQL files\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f FILE, --file FILE  SQL file to format. Default: stdin\n  -kc KEYWORD_CASE, --keyword_case KEYWORD_CASE\n                        Changes how keywords are formatted. Allowed values are “upper”, “lower” and “capitalize”. Default is “upper”.\n  -ic IDENTIFIER_CASE, --identifier_case IDENTIFIER_CASE\n                        Changes how identifiers are formatted. Allowed values are “upper”, “lower”, and “capitalize”. Default is “lower”.\n  -sc STRIP_COMMENTS, --strip_comments STRIP_COMMENTS\n                        If True comments are removed from the statements. Default is False.\n  -ri REINDENT, --reindent REINDENT\n                        If True the indentations of the statements are changed. Default is True.\n  -ra REINDENT_ALIGNED, --reindent_aligned REINDENT_ALIGNED\n                        If True the indentations of the statements are changed, and statements are aligned by keywords. Default is False.\n  -us USE_SPACE_AROUND_OPERATORS, --use_space_around_operators USE_SPACE_AROUND_OPERATORS\n                        If True spaces are used around all operators. Default is False.\n  -it INDENT_TABS, --indent_tabs INDENT_TABS\n                        If True tabs instead of spaces are used for indentation. Default is False.\n  -iw INDENT_WIDTH, --indent_width INDENT_WIDTH\n                        The width of the indentation. Default is 2.\n  -wa WRAP_AFTER, --wrap_after WRAP_AFTER\n                        The column limit (in characters) for wrapping comma-separated lists. If unspecified, it puts every item in the list on its own line.\n                        Default is False.\n  -of OUTPUT_FORMAT, --output_format OUTPUT_FORMAT\n                        If given the output is additionally formatted to be used as a variable in a programming language. Allowed values are “sql”, “python”\n                        and “php”. Default is “sql”.\n  -cf COMMA_FIRST, --comma_first COMMA_FIRST\n                        If True comma-first notation for column names is used. Default is False.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fsql-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillf%2Fsql-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Fsql-format/lists"}