pg_info

package
v0.0.0-...-618b02f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	TableCatalog    string
	TableSchema     string
	TblName         string `pg:"tbl_name"`
	ColumnName      string
	OrdinalPosition string
	ColumnDefault   string
	IsNullable      string
	DataType        string
	// contains filtered or unexported fields
}

type Index

type Index struct {
	Name string
	Src  string
}

func (Index) Filterable

func (f Index) Filterable() []string

type PgInfoRepo

type PgInfoRepo struct {
	*pg.DB
}

func (PgInfoRepo) GetIndexesForTable

func (r PgInfoRepo) GetIndexesForTable(schema string, table string) (res []Index)

func (PgInfoRepo) GetUserColumns

func (r PgInfoRepo) GetUserColumns(db string, schema string, table string) ([]Column, error)

func (PgInfoRepo) GetUserTables

func (r PgInfoRepo) GetUserTables(db string, schema string) ([]string, error)

Jump to

Keyboard shortcuts

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