{"repo":"auxten/postgresql-parser","free":true,"listed":false,"github":"https://github.com/auxten/postgresql-parser","clone":"git clone https://github.com/auxten/postgresql-parser.git","description":"Pure Golang PostgreSQL (SQL:2011, SQL:2008, SQL:2003, SQL:1999, and SQL-92 Standard) Parser","language":"Go","stars":313,"topics":["postgresql","sql-parser","cockroachdb","sql","sql2011","golang"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"What's this PostgreSQL style Parser splitted from CockroachDB See: Complex SQL format example I tried to import github.com/cockroachdb/cockroach/pkg/sql/parser , but the dependencies is too complex to make it work. To make things easy, I did these things: 1. Copy all the pkg/sql/parser , pkg/sql/lex and simplify the dependencies 2. Simplify the Makefile to just generate the goyacc stuff 3. Add the goyacc generated files in parser and lex to make go get work easily, see the .gitignore files 4. Trim the etcd dependency, see the go.mod 5. Rename all test file except some pkg/sql/parser tests 6. Add all necessary imports to vendor 7. Remove the panic of meeting unregistried functions, see the WrapFunction 8. Other nasty things make the parser just work that I forgot :p Who is using this - Atlas 1.8k stars - ByteBase 3.6k stars - More Features - Pure golang implementation - Almost full support of PostgreSQL ( cockroachdb style PostgreSQL) - For SQL lineage analysis see go-sql-lineage SQL Standard Compliance The code is derived from CockroachDB v20.1.11 which supports most of the major features of SQL:2011. See: - https://www.cockroachlabs.com/docs/v20.1/postgresql-compatibility - https://www.postgresql.org/docs/9.5/features.html How to use SQL parser This project contains code that is automatically generated using goyacc . goyacc reads the SQL expressions ( sql.y ) and generates a parser which could be used to tokenize a given input. You could update the generated code using the g","default_branch":null,"files":null,"tree":[],"storefront":"/r/auxten","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/auxten/postgresql-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}