1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

databases/py-sqlglot: Add py-sqlglot 5.3.1

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.

WWW: https://github.com/tobymao/sqlglot
This commit is contained in:
Po-Chuan Hsieh 2022-09-04 11:41:28 +08:00
parent a6bf1fb903
commit 757662b297
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 37 additions and 0 deletions

View File

@ -833,6 +833,7 @@
SUBDIR += py-sqlalchemy12
SUBDIR += py-sqlalchemy13
SUBDIR += py-sqlalchemy14
SUBDIR += py-sqlglot
SUBDIR += py-sqlite-fts4
SUBDIR += py-sqlite-utils
SUBDIR += py-sqlite3

View File

@ -0,0 +1,18 @@
PORTNAME= sqlglot
PORTVERSION= 5.3.1
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Easily customizable SQL parser and transpiler
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1662212102
SHA256 (sqlglot-5.3.1.tar.gz) = 615d7bf589ed167972d98edc74657e2063254ebea0812eb6e06245dd928193fb
SIZE (sqlglot-5.3.1.tar.gz) = 90651

View File

@ -0,0 +1,15 @@
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.
WWW: https://github.com/tobymao/sqlglot