dbtable

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 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 ColumnListWithAttr added in v0.1.4

type ColumnListWithAttr []*ColumnWithAttr

func (ColumnListWithAttr) ColumnNames added in v0.1.4

func (cl ColumnListWithAttr) ColumnNames() []tree.Name

func (ColumnListWithAttr) NotNullColIdxMapping added in v0.1.4

func (cl ColumnListWithAttr) NotNullColIdxMapping() map[int]bool

type ColumnWithAttr added in v0.1.4

type ColumnWithAttr struct {
	Name    tree.Name
	NotNull bool
}

type DBTable

type DBTable struct {
	Name
	OID oid.Oid
}

DBTable represents a basic table object with OID from the relevant table.

func (DBTable) Compare

func (tm DBTable) Compare(o DBTable) int

func (DBTable) Less

func (tm DBTable) Less(o DBTable) bool

func (DBTable) String

func (tm DBTable) String() string

type Name

type Name struct {
	Schema tree.Name
	Table  tree.Name
}

func (Name) MakeTableName

func (n Name) MakeTableName() tree.TableName

func (Name) NewTableName

func (n Name) NewTableName() *tree.TableName

func (Name) SafeString

func (n Name) SafeString() string

type VerifiedTable

type VerifiedTable struct {
	Name
	PrimaryKeyColumns []tree.Name
	Columns           ColumnListWithAttr
	ColumnOIDs        [2][]oid.Oid
}

VerifiedTable represents a table which has been verified across implementations.

Jump to

Keyboard shortcuts

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