pg

package
v0.0.0-...-27277ac Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSchema

func LoadSchema(db *dbtypes.DB) error

func PlanQuery

func PlanQuery(db *dbtypes.DB, query string) (string, error)

Types

type PostgresColumn

type PostgresColumn struct {
	ColumnName    string
	DataType      string
	ColumnType    string
	IsNullable    bool
	ColumnKey     string
	ColumnDefault *string
	Extra         string
}

func (PostgresColumn) GetColumnDefault

func (c PostgresColumn) GetColumnDefault() *string

func (PostgresColumn) GetColumnKey

func (c PostgresColumn) GetColumnKey() string

func (PostgresColumn) GetColumnType

func (c PostgresColumn) GetColumnType() string

func (PostgresColumn) GetDataType

func (c PostgresColumn) GetDataType() string

func (PostgresColumn) GetExtra

func (c PostgresColumn) GetExtra() string

func (PostgresColumn) GetIsNullable

func (c PostgresColumn) GetIsNullable() bool

func (PostgresColumn) GetName

func (c PostgresColumn) GetName() string

type PostgresTable

type PostgresTable struct {
	TableName         string
	Columns           []PostgresColumn
	PrimaryKeys       []string
	EstimatedRowCount int64
}

func (PostgresTable) GetColumns

func (t PostgresTable) GetColumns() []dbtypes.Column

func (PostgresTable) GetEstimatedRowCount

func (t PostgresTable) GetEstimatedRowCount() int64

func (PostgresTable) GetName

func (t PostgresTable) GetName() string

func (PostgresTable) GetPrimaryKeys

func (t PostgresTable) GetPrimaryKeys() []string

Jump to

Keyboard shortcuts

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