postgres

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DescribeTableSQL = "SELECT column_name, ordinal_position, column_default, is_nullable, data_type " +
		"FROM information_schema.columns " +
		"WHERE table_schema = $1 AND table_name = $2 " +
		"ORDER BY ordinal_position ASC"
)

Variables

This section is empty.

Functions

func New

Types

type Column

type Column struct {
	Name          string
	Position      uint
	Type          api.IDataType
	Default       *string
	Nullable      bool
	MaxCharLength uint
	Precision     uint
}

func (*Column) ScanRow

func (c *Column) ScanRow(rows pgx.Rows) error

type ConnectionConfig

type ConnectionConfig struct {
	ConnectionString string
	SyncTable        string
	SequenceTable    string
}

Jump to

Keyboard shortcuts

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