entries

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 9, 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
	ExcludeData  bool
	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
	RootPtSchema         string
	RootPtName           string
	LoadViaPartitionRoot bool
	RootOid              toolkit.Oid
	Transformers         []utils.Transformer
	Dependencies         []int32
	DumpId               int32
	OriginalSize         int64
	CompressedSize       int64
	ExcludeData          bool
	Driver               *toolkit.Driver
	// ValidateLimitedRecords - perform dumping and transformation only for N records and exit
	ValidateLimitedRecords uint64
	Scores                 int64
}

func (*Table) Entry

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

func (*Table) GetCopyFromStatement

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

func (*Table) HasCustomTransformer

func (t *Table) HasCustomTransformer() bool

func (*Table) SetDumpId

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

Jump to

Keyboard shortcuts

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