postgres

package
v0.5.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresDialect

type PostgresDialect struct {
	database.BaseDialect
}

func (*PostgresDialect) CaseInsensitiveLike

func (d *PostgresDialect) CaseInsensitiveLike() string

func (*PostgresDialect) MapType

func (d *PostgresDialect) MapType(stdType string) string

func (*PostgresDialect) OnConflictClause added in v0.4.6

func (d *PostgresDialect) OnConflictClause(columns []string, action string) string

func (*PostgresDialect) Placeholder

func (d *PostgresDialect) Placeholder(n int) string

func (*PostgresDialect) QuoteIdentifier

func (d *PostgresDialect) QuoteIdentifier(name string) string

func (*PostgresDialect) ReturningClause

func (d *PostgresDialect) ReturningClause(cols ...string) string

func (*PostgresDialect) SupportsArrays added in v0.4.6

func (d *PostgresDialect) SupportsArrays() bool

func (*PostgresDialect) SupportsCTE added in v0.4.6

func (d *PostgresDialect) SupportsCTE() bool

func (*PostgresDialect) SupportsFullJoin added in v0.4.6

func (d *PostgresDialect) SupportsFullJoin() bool

func (*PostgresDialect) SupportsReturning

func (d *PostgresDialect) SupportsReturning() bool

func (*PostgresDialect) SupportsWindowFunctions added in v0.4.6

func (d *PostgresDialect) SupportsWindowFunctions() bool

func (*PostgresDialect) UpsertSupport added in v0.4.6

func (d *PostgresDialect) UpsertSupport() bool

type PostgresDriver

type PostgresDriver struct {
	// contains filtered or unexported fields
}

func (*PostgresDriver) Begin

func (d *PostgresDriver) Begin(ctx context.Context) (database.Tx, error)

func (*PostgresDriver) Close

func (d *PostgresDriver) Close() error

func (*PostgresDriver) Connect

func (d *PostgresDriver) Connect(ctx context.Context, dsn string) error

func (*PostgresDriver) Dialect

func (d *PostgresDriver) Dialect() database.Dialect

func (*PostgresDriver) DriverName

func (d *PostgresDriver) DriverName() string

func (*PostgresDriver) Exec

func (d *PostgresDriver) Exec(ctx context.Context, query string, args ...interface{}) (database.Result, error)

func (*PostgresDriver) Introspector

func (d *PostgresDriver) Introspector() database.SchemaIntrospector

func (*PostgresDriver) Ping

func (d *PostgresDriver) Ping(ctx context.Context) error

func (*PostgresDriver) Query

func (d *PostgresDriver) Query(ctx context.Context, query string, args ...interface{}) (database.Rows, error)

func (*PostgresDriver) QueryRow

func (d *PostgresDriver) QueryRow(ctx context.Context, query string, args ...interface{}) database.Row

type PostgresIntrospector

type PostgresIntrospector struct {
	// contains filtered or unexported fields
}

func (*PostgresIntrospector) GetColumns

func (i *PostgresIntrospector) GetColumns(ctx context.Context, tableName string) ([]database.Column, error)

func (*PostgresIntrospector) GetRelations

func (i *PostgresIntrospector) GetRelations(ctx context.Context) ([]database.Relation, error)

func (*PostgresIntrospector) LoadSchema

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL