Documentation
¶
Overview ¶
Package postgres parses PostgreSQL statements into github.com/aita/sqlkit/sql queries. It is the PostgreSQL frontend for github.com/aita/sqlkit/x/sqlparse, backed by pg_query_go (the real PostgreSQL grammar via libpg_query).
It lives in its own module so the pg_query_go (cgo) dependency stays isolated from callers that only need the sqlparse abstraction or the sql package.
q, err := postgres.ParseOne("SELECT id FROM users WHERE active")
text, args, err := q.ToSQL(sql.PostgreSQLDialect{})
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.