pgd

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type ListCheckConstraintsRow

type ListCheckConstraintsRow struct {
	SchemaName     string
	TableName      string
	ConstraintName string
	CheckClause    string
}

type ListColumnsRow

type ListColumnsRow struct {
	SchemaName    string
	TableName     string
	ColumnNumber  int16
	ColumnName    string
	ColumnType    string
	ColumnDefault string
	NotNull       bool
}

type ListConstraintsRow

type ListConstraintsRow struct {
	SchemaName           string
	TableName            string
	ConstraintName       string
	ConstraintDefinition string
}

type ListEnumsRow

type ListEnumsRow struct {
	SchemaName string
	EnumName   string
	EnumValues []byte
}

type ListExtensionsRow

type ListExtensionsRow struct {
	ExtName    string
	SchemaName string
}

type ListFunctionsRow

type ListFunctionsRow struct {
	SchemaName   string
	FunctionName string
	FuncDef      string
}

type ListIndexesRow

type ListIndexesRow struct {
	SchemaName      string
	TableName       string
	IndexName       string
	IndexDefinition string
}

type ListSequencesRow

type ListSequencesRow struct {
	SchemaName   string
	SequenceName string
	StartValue   pgtype.Int8
	Increment    pgtype.Int8
	MinValue     pgtype.Int8
	MaxValue     pgtype.Int8
	Cache        pgtype.Int8
	TableSchema  string
	TableName    string
	ColumnName   string
}

type ListTriggersRow

type ListTriggersRow struct {
	SchemaName        string
	TableName         string
	TriggerName       string
	TriggerDefinition string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) ListCheckConstraints

func (q *Queries) ListCheckConstraints(ctx context.Context) ([]ListCheckConstraintsRow, error)

func (*Queries) ListColumns

func (q *Queries) ListColumns(ctx context.Context) ([]ListColumnsRow, error)

func (*Queries) ListConstraints

func (q *Queries) ListConstraints(ctx context.Context) ([]ListConstraintsRow, error)

func (*Queries) ListEnums

func (q *Queries) ListEnums(ctx context.Context) ([]ListEnumsRow, error)

func (*Queries) ListExtensions

func (q *Queries) ListExtensions(ctx context.Context) ([]ListExtensionsRow, error)

func (*Queries) ListFunctions

func (q *Queries) ListFunctions(ctx context.Context) ([]ListFunctionsRow, error)

func (*Queries) ListIndexes

func (q *Queries) ListIndexes(ctx context.Context) ([]ListIndexesRow, error)

func (*Queries) ListSequences

func (q *Queries) ListSequences(ctx context.Context) ([]ListSequencesRow, error)

func (*Queries) ListTriggers

func (q *Queries) ListTriggers(ctx context.Context) ([]ListTriggersRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

Jump to

Keyboard shortcuts

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