Contents

sqlglot 23.8.1

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: 5364, Watchers: 5364, Forks: 522, Open Issues: 2

The tobymao/sqlglot repo was created 3 years ago and the last code push was 53 minutes ago.
The project is extremely popular with a mindblowing 5364 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.68

Mage is a tool for building and deploying data pipelines.