Documentation
¶
Index ¶
- type PostgresDialect
- func (d *PostgresDialect) CaseInsensitiveLike() string
- func (d *PostgresDialect) MapType(stdType string) string
- func (d *PostgresDialect) OnConflictClause(columns []string, action string) string
- func (d *PostgresDialect) Placeholder(n int) string
- func (d *PostgresDialect) QuoteIdentifier(name string) string
- func (d *PostgresDialect) ReturningClause(cols ...string) string
- func (d *PostgresDialect) SupportsArrays() bool
- func (d *PostgresDialect) SupportsCTE() bool
- func (d *PostgresDialect) SupportsFullJoin() bool
- func (d *PostgresDialect) SupportsReturning() bool
- func (d *PostgresDialect) SupportsWindowFunctions() bool
- func (d *PostgresDialect) UpsertSupport() bool
- type PostgresDriver
- func (d *PostgresDriver) Begin(ctx context.Context) (database.Tx, error)
- func (d *PostgresDriver) Close() error
- func (d *PostgresDriver) Connect(ctx context.Context, dsn string) error
- func (d *PostgresDriver) Dialect() database.Dialect
- func (d *PostgresDriver) DriverName() string
- func (d *PostgresDriver) Exec(ctx context.Context, query string, args ...interface{}) (database.Result, error)
- func (d *PostgresDriver) Introspector() database.SchemaIntrospector
- func (d *PostgresDriver) Ping(ctx context.Context) error
- func (d *PostgresDriver) Query(ctx context.Context, query string, args ...interface{}) (database.Rows, error)
- func (d *PostgresDriver) QueryRow(ctx context.Context, query string, args ...interface{}) database.Row
- type PostgresIntrospector
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) 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) Introspector ¶
func (d *PostgresDriver) Introspector() database.SchemaIntrospector
type PostgresIntrospector ¶
type PostgresIntrospector struct {
// contains filtered or unexported fields
}
func (*PostgresIntrospector) GetColumns ¶
func (*PostgresIntrospector) GetRelations ¶
func (*PostgresIntrospector) LoadSchema ¶
func (i *PostgresIntrospector) LoadSchema(ctx context.Context) ([]database.TableSchema, error)
Click to show internal directories.
Click to hide internal directories.