Documentation
¶
Overview ¶
Package postgres is the PostgreSQL engine: its spi.Provider, SQL text, introspection probes, table detail, and the blocking PostgreSQL wire broker for the simple and extended query protocols. The broker owns only wire I/O and mechanically applies engine verdicts; authorization remains exclusively in spi.Authorizer. COPY is deferred to a later phase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Queries = sqldb.Queries{ HashSetupProbe: hashSetupProbeSQL, HashSetupColumns: 1, Routines: routinesSQL, SchemaRoutines: schemaRoutinesSQL, SchemaColumns: schemaColumnsSQL, SchemaHash: schemaHashSQL, SchemaHashFromRows: schemaHashFromRows, Engine: engines.Postgres, TargetSettingsProbe: "SELECT pg_catalog.version()", TargetSettingsColumns: 1, TargetSettings: targetSettings, }
Queries is the SQL the shared database/sql code runs on a PostgreSQL target.
Functions ¶
func OpenPool ¶
func OpenPool(config spi.TargetConfig) (*sql.DB, error)
OpenPool opens a database/sql handle to a Postgres target.
Types ¶
type Provider ¶
type Provider struct{}
Provider is PostgreSQL's spi.Provider.
func (Provider) OpenTarget ¶
Click to show internal directories.
Click to hide internal directories.