FreeBSD Ports

databases/py-sqlglot 30.12.0

Easily customizable SQL parser and transpiler

Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d94ea4b5ec
License
MIT
Categories
databases, python
Package size
1456.3 KiB, 10089.9 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.

Install

As a binary package — by origin, or by package name:

pkg install databases/py-sqlglot
pkg install py312-sqlglot

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-sqlglot>0:databases/py-sqlglot

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest30.12.030.12.08.0.027.3.130.12.0
FreeBSD:14:quarterly30.12.030.12.0n/a26.31.030.12.0
FreeBSD:15:latest30.12.030.12.0n/a27.3.127.3.1
FreeBSD:15:quarterly30.12.030.12.0n/an/an/a
FreeBSD:16:latest30.12.030.12.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

The full lists below include those, and their dependencies in turn.

All build dependencies 17
All run dependencies 7

Configuration

Options name: databases_sqlglot

OptionDefaultDescription
ConSQL parser and transpiler in C
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
sqlglot-30.12.0.tar.gz5.90511e+066b8369704662d4f654bc934cea4dd31c916c2a571b389210cb9e951a275e5fd9
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
d94ea4b5ec Po-Chuan Hsieh databases/py-sqlglot: Update to 30.12.0
Changes: https://github.com/tobymao/sqlglot/blob/main/CHANGELOG.md
45c9a813cc Po-Chuan Hsieh databases/py-sqlglot: Update to 30.11.0
Changes: https://github.com/tobymao/sqlglot/blob/main/CHANGELOG.md