Documentation
¶
Overview ¶
Package postgres registers the PostgreSQL driver and grammar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grammar ¶
type Grammar struct{}
Grammar implements database.Grammar for PostgreSQL.
func (Grammar) CompileType ¶
func (Grammar) CompileType(kind string, opts database.ColumnTypeOptions) string
CompileType renders a Postgres column type.
func (Grammar) LastInsertIDStrategy ¶
func (Grammar) LastInsertIDStrategy() database.InsertIDStrategy
LastInsertIDStrategy returns ViaReturning.
func (Grammar) Placeholder ¶
Placeholder returns "$N" for the n-th argument.
func (Grammar) Quote ¶
Quote wraps an identifier in double quotes, escaping embedded quotes. It preserves dotted "schema.table" forms.
func (Grammar) SupportsReturning ¶
SupportsReturning is true: Postgres handles INSERT ... RETURNING natively.
Click to show internal directories.
Click to hide internal directories.