postgres

package
v0.0.0-...-3cc3e56 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresStorage

type PostgresStorage struct {
	db.NetworkDB
	SSL db.SSL `json:"ssl" yaml:"ssl"`
}

func (*PostgresStorage) Open

func (p *PostgresStorage) Open(logger *log.Logger) (*db.Conn, error)

type PostgresTable

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

func NewPostgresTable

func NewPostgresTable(conn *db.Conn, dbname string) (*PostgresTable, error)

func (*PostgresTable) Connect

func (pg *PostgresTable) Connect() (err error)

func (*PostgresTable) GetColumnsOfTable

func (pg *PostgresTable) GetColumnsOfTable(table *db.Table) (err error)

get table columns

func (*PostgresTable) GetFloatDatatypes

func (pg *PostgresTable) GetFloatDatatypes() []string

func (*PostgresTable) GetIntegerDatatypes

func (pg *PostgresTable) GetIntegerDatatypes() []string

func (*PostgresTable) GetStringDatatypes

func (pg *PostgresTable) GetStringDatatypes() []string

func (*PostgresTable) GetTables

func (pg *PostgresTable) GetTables() (tables []*db.Table, err error)

GetTables gets all tables for a given schema by name.

func (*PostgresTable) GetTemporalDatatypes

func (pg *PostgresTable) GetTemporalDatatypes() []string

func (*PostgresTable) GetTextDatatypes

func (pg *PostgresTable) GetTextDatatypes() []string

func (*PostgresTable) IsAutoIncrement

func (pg *PostgresTable) IsAutoIncrement(column db.Column) bool

func (*PostgresTable) IsFloat

func (pg *PostgresTable) IsFloat(column db.Column) bool

func (*PostgresTable) IsInteger

func (pg *PostgresTable) IsInteger(column db.Column) bool

func (*PostgresTable) IsNullable

func (pg *PostgresTable) IsNullable(column db.Column) bool

func (*PostgresTable) IsPrimaryKey

func (pg *PostgresTable) IsPrimaryKey(column db.Column) bool

func (*PostgresTable) IsString

func (pg *PostgresTable) IsString(column db.Column) bool

func (*PostgresTable) IsTemporal

func (pg *PostgresTable) IsTemporal(column db.Column) bool

func (*PostgresTable) IsText

func (pg *PostgresTable) IsText(column db.Column) bool

Jump to

Keyboard shortcuts

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