entries

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	Value string
	Items []*ACLItem
}

type ACLItem

type ACLItem struct {
	Grantor       string
	Grantee       string
	PrivilegeType string
	Grantable     bool
}

type Blobs

type Blobs struct {
	LargeObjects   []*LargeObject
	DumpId         int32
	Dependencies   []int32
	OriginalSize   int64
	CompressedSize int64
}

func (*Blobs) Entry

func (b *Blobs) Entry() (*toc.Entry, error)

func (*Blobs) GetAllDDLs

func (b *Blobs) GetAllDDLs() []*toc.Entry

func (*Blobs) SetDumpId

func (b *Blobs) SetDumpId(sequence *toc.DumpIdSequence)

type Entry

type Entry interface {
	Entry() (*toc.Entry, error)
	SetDumpId(sequence *toc.DumpIdSequence)
}

type LargeObject

type LargeObject struct {
	CreateDumpId  int32
	CommentDumpId int32
	PermDumpId    int32
	TableOid      toc.Oid
	Oid           toc.Oid
	ACL           []*ACL
	DefaultACL    *ACL
	Comment       string
	Owner         string
}

func (*LargeObject) AclDdl

func (lo *LargeObject) AclDdl() *toc.Entry

func (*LargeObject) CommentDdl

func (lo *LargeObject) CommentDdl() *toc.Entry

func (*LargeObject) CreateDdl

func (lo *LargeObject) CreateDdl() *toc.Entry

func (*LargeObject) SetDumpId

func (lo *LargeObject) SetDumpId(sequence *toc.DumpIdSequence)

type Sequence

type Sequence struct {
	Oid          toc.Oid
	Schema       string
	Name         string
	Owner        string
	IsCalled     bool
	DumpId       int32
	Dependencies []int32
	LastValue    int64
}

func (*Sequence) Entry

func (s *Sequence) Entry() (*toc.Entry, error)

func (*Sequence) SetDumpId

func (s *Sequence) SetDumpId(sequence *toc.DumpIdSequence)

type Table

type Table struct {
	*toolkit.Table
	Query                string
	Owner                string
	RelKind              rune
	LoadViaPartitionRoot bool
	// RootPtSchema - schema name of the root partition table uses in partitioned tables when LoadViaPartitionRoot
	// is set
	RootPtSchema string
	// RootPtName - name of the root partition table uses in partitioned tables when LoadViaPartitionRoot is set
	RootPtName          string
	RootPtOid           toolkit.Oid
	TransformersContext []*utils.TransformerContext
	Dependencies        []int32
	DumpId              int32
	OriginalSize        int64
	CompressedSize      int64
	//ExcludeData          bool
	Driver      *toolkit.Driver
	Scores      int64
	SubsetConds []string
	When        *toolkit.WhenCond
}

Table - godoc

func (*Table) Entry

func (t *Table) Entry() (*toc.Entry, error)

Entry - create TOC entry for table. This uses in toc.dat entries generation

func (*Table) GetCopyFromStatement

func (t *Table) GetCopyFromStatement() (string, error)

GetCopyFromStatement - get COPY FROM statement for table

func (*Table) HasCustomTransformer

func (t *Table) HasCustomTransformer() bool

HasCustomTransformer - check if table has custom transformer

func (*Table) SetDumpId

func (t *Table) SetDumpId(sequence *toc.DumpIdSequence)

SetDumpId - set dump id for table - it uses in TOC entry identification

Jump to

Keyboard shortcuts

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