@@ -17,21 +17,6 @@ Due to compiling parts of PostgreSQL, the first time you build against this libr
1717
1818Expect up to 3 minutes. You can use ` go build -x ` to see the progress.
1919
20- ## Usage with Go modules
21-
22- When integrating this library using Go modules, and using a vendor/ directory,
23- you will need to explicitly copy over some of the C build files, since Go does
24- not copy files in subfolders without .go files whilst vendoring.
25-
26- The best way to do so is to use [ modvendor] ( https://github.com/goware/modvendor ) ,
27- and vendor your modules like this:
28-
29- ```
30- go mod vendor
31- go get -u github.com/goware/modvendor
32- modvendor -copy="**/*.c **/*.h **/*.proto" -v
33- ```
34-
3520## Usage
3621
3722### Parsing a query into JSON
@@ -59,7 +44,7 @@ func main() {
5944Running will output the query's parse tree as JSON:
6045
6146``` json
62- {"version" :160001 ,"stmts" :[{"stmt" :{"SelectStmt" :{"targetList" :[{"ResTarget" :{"val" :{"A_Const" :{"ival" :{"ival" :1 },"location" :7 }},"location" :7 }}],"limitOption" :" LIMIT_OPTION_DEFAULT" ,"op" :" SETOP_NONE" }}}]}
47+ {"version" :170004 ,"stmts" :[{"stmt" :{"SelectStmt" :{"targetList" :[{"ResTarget" :{"val" :{"A_Const" :{"ival" :{"ival" :1 },"location" :7 }},"location" :7 }}],"limitOption" :" LIMIT_OPTION_DEFAULT" ,"op" :" SETOP_NONE" }}}]}
6348```
6449
6550### Parsing a query into Go structs
@@ -210,6 +195,7 @@ See `benchmark_test.go` for details on the benchmarks.
210195## License
211196
212197Copyright (c) 2015, Lukas Fittl < lukas@fittl.com > <br >
198+ Copyright (c) 2016-2025, Duboce Labs, Inc. (pganalyze) < team@pganalyze.com >
213199pg_query_go is licensed under the 3-clause BSD license, see LICENSE file for details.
214200
215201This project includes code derived from the [ PostgreSQL project] ( http://www.postgresql.org/ ) ,
0 commit comments