Documentation
¶
Overview ¶
Package postgresql generates the PostgreSQL dialect seed under internal/engine/postgresql/dialect from a live server: pg_catalog's functions, the relations of pg_catalog and information_schema, and one directory per contrib extension holding the types and functions CREATE EXTENSION adds. types.jsonl and operators.jsonl at the top of the dialect are written by hand and are not this package's business.
The server is named by POSTGRESQL_SERVER_URI and has to be the major release in Major, since each release adds to its catalogs.
Index ¶
Constants ¶
const Engine = "postgresql"
Engine is the name of the engine directory the dialect lives under.
const Major = 16
Major is the PostgreSQL major release the dialect is generated from. Bumping it is a deliberate change: every release adds functions and catalog columns, so regenerate and review the dialect after changing it.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate reads the dialect from the server. It creates every contrib extension it describes, so the server's contrib package has to be installed.
Types ¶
type Proc ¶
type Proc struct {
Name string
ReturnType string
ArgTypes []string
ArgNames []string
HasDefault []string
ArgModes []string
}