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:
parent
a6bf1fb903
commit
757662b297
@ -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
|
||||
|
18
databases/py-sqlglot/Makefile
Normal file
18
databases/py-sqlglot/Makefile
Normal 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>
|
3
databases/py-sqlglot/distinfo
Normal file
3
databases/py-sqlglot/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1662212102
|
||||
SHA256 (sqlglot-5.3.1.tar.gz) = 615d7bf589ed167972d98edc74657e2063254ebea0812eb6e06245dd928193fb
|
||||
SIZE (sqlglot-5.3.1.tar.gz) = 90651
|
15
databases/py-sqlglot/pkg-descr
Normal file
15
databases/py-sqlglot/pkg-descr
Normal 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
|
Loading…
Reference in New Issue
Block a user