BSD Ports

databases/py-sqlglot 26.10.1 DragonFly

Easily customizable SQL parser and transpiler

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
databases, python
Package size
958.4 KiB, 7200.4 KiB installed

Description

SQLGlot is a no dependency Python SQL parser, transpiler, and optimizer. It can be used to format SQL or translate between different dialects like DuckDB, Presto, Spark, and BigQuery. It aims to read a wide variety of SQL inputs and output syntactically correct SQL in the targeted dialects.

It is a very comprehensive generic SQL parser with a robust test suite. It is also quite performant while being written purely in Python.

You can easily customize the parser, analyze queries, traverse expression trees, and programmatically build SQL.

Syntax errors are highlighted and dialect incompatibilities can warn or raise depending on configurations.

In the other systems

SystemPortVersion
DragonFlydatabases/py-sqlglot26.10.1
FreeBSDdatabases/py-sqlglot30.12.0

Install

Binary package:

pkg install py311-sqlglot

From DPorts:

cd /usr/dports/databases/py-sqlglot && make install clean

Dependencies

Run dependencies 1