Documentation
¶
Index ¶
- type Postgres
- func (d Postgres) AlterColumnSQL(table, column string, t reflect.Type, spec dialect.ColumnSpec) (string, error)
- func (d Postgres) ColumnDefinition(t reflect.Type, spec dialect.ColumnSpec) (string, error)
- func (Postgres) ColumnTypesSQL(table string) (string, []any)
- func (Postgres) CurrentDatabaseSQL() string
- func (d Postgres) DropIndexSQL(_, index string) string
- func (Postgres) GetTablesSQL() (string, []any)
- func (Postgres) HasColumnSQL(table, column string) (string, []any)
- func (Postgres) HasConstraintSQL(table, name string) (string, []any)
- func (Postgres) HasIndexSQL(table, index string) (string, []any)
- func (Postgres) HasTableSQL(table string) (string, []any)
- func (Postgres) InlinesPrimaryKey(dialect.ColumnSpec) bool
- func (Postgres) Name() string
- func (Postgres) Placeholder(n int) string
- func (Postgres) QuoteIdent(name string) string
- func (d Postgres) RenameIndexSQL(_, oldName, newName string) (string, error)
- func (Postgres) SupportsILike() bool
- func (Postgres) SupportsOnConflict() bool
- func (Postgres) SupportsReturning() bool
- func (Postgres) SupportsRowLocking() bool
- func (Postgres) SupportsSavepoints() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct{}
Postgres implements dialect.Dialect. Error classification lives in pack/driver/postgres, not here - see driver.ErrorDecoder.
func (Postgres) AlterColumnSQL ¶
func (Postgres) ColumnDefinition ¶
ColumnDefinition implements dialect.DDL.
func (Postgres) CurrentDatabaseSQL ¶
func (Postgres) DropIndexSQL ¶
func (Postgres) GetTablesSQL ¶
func (Postgres) HasConstraintSQL ¶
func (Postgres) InlinesPrimaryKey ¶
func (Postgres) InlinesPrimaryKey(dialect.ColumnSpec) bool
func (Postgres) Placeholder ¶
func (Postgres) QuoteIdent ¶
func (Postgres) RenameIndexSQL ¶
func (Postgres) SupportsILike ¶
func (Postgres) SupportsOnConflict ¶
func (Postgres) SupportsReturning ¶
func (Postgres) SupportsRowLocking ¶
func (Postgres) SupportsSavepoints ¶
Click to show internal directories.
Click to hide internal directories.