Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
pg_query-ocaml
Bindings for pg_query for parsing PostgreSQL. Documentation is here.
Usage
This provides a library that can be used in OCaml code like so:
let statement = "SELECT user, email FROM users WHERE id = 7"
let () =
match Pg_query.parse statement with
| Ok parse_tree -> use parse_tree
| Error error_message -> use error_message