Skip to main content

SQL Formatter based on sqlparse

Project description

sqlmakeuper

Python library with CLI interface for sql formatting based on sqlparse

Installation

pip install sqlmakeuper

Using

Format with default parameters

sqlmakeup --path /path/with/files/to/format
  • Default parameters are (reindent=True, indent_width=4, keyword_case="lower", identifier_case="lower", comma_first=True,)

Format with custom parameters

sqlmakeup --path /path/with/files/to/format --parameters '{"comma_first":0}'

Check with custom parameters

sqlmakeup --path /path/with/files/to/format --check

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlmakeuper-0.1.4.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlmakeuper-0.1.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file sqlmakeuper-0.1.4.tar.gz.

File metadata

  • Download URL: sqlmakeuper-0.1.4.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for sqlmakeuper-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cc59c4657c00298ff1c3ef416dae6a838d8a019ad0ef9bec4cbb313d456ab492
MD5 ec2eb4da4a3d5a7791e73b50fcbc67c3
BLAKE2b-256 b2aaf59b1ce31c964b0e0bde74b55d1123fb743ef7aa65328b6472256f30b038

See more details on using hashes here.

File details

Details for the file sqlmakeuper-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sqlmakeuper-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for sqlmakeuper-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 301e77680be499e0bb9486506699848892d62caa0b6b13b8d1e62e45851692de
MD5 2afdd76b3bd687212e2ec664e2b70e13
BLAKE2b-256 e7665f1705c9525ebe096111e01bf12a03d0ee6db25f4b2fb159b48e0dbf8b0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page