Contents

sqlglot 25.24.5

0

An easily customizable SQL parser and transpiler

sqlglot is a Python package that serves as a comprehensive SQL parser, transpiler, optimizer, and engine. It is designed to read a wide variety of SQL inputs and output syntactically and semantically correct SQL in the targeted dialects. The package can be used to format SQL or translate between 19 different dialects like DuckDB, Presto, Spark, Snowflake, and BigQuery. It falls under the category of Database Management Systems (DBMS).

Stars: 6543, Watchers: 6543, Forks: 683, Open Issues: 3

The tobymao/sqlglot repo was created 3 years ago and the last code push was Yesterday.
The project is extremely popular with a mindblowing 6543 github stars!

How to Install sqlglot

You can install sqlglot using pip

pip install sqlglot

or add it to a project with poetry

poetry add sqlglot

Package Details

Author
Toby Mao
License
MIT
Homepage
https://github.com/tobymao/sqlglot
PyPi:
https://pypi.org/project/sqlglot/
GitHub Repo:
https://github.com/tobymao/sqlglot

Classifiers

No  sqlglot  pypi packages just yet.

Errors

A list of common sqlglot errors.

Code Examples

Here are some sqlglot code examples and snippets.

Related Packages & Articles

mage-ai 0.9.74

Mage is a tool for building and deploying data pipelines.