dao

package
v0.0.0-rc11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DDLClient

type DDLClient interface {
	db.Client
	db.DDLExecutor
}

type DDLDAO

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

func NewDDLDAO

func NewDDLDAO(client DDLClient, lgr log.Logger) *DDLDAO

func (*DDLDAO) CreateTable

func (d *DDLDAO) CreateTable(db, table string, schema []abstract.ColSchema) error

func (*DDLDAO) CreateTableAs

func (d *DDLDAO) CreateTableAs(baseDB, baseTable, targetDB, targetTable string) error

func (*DDLDAO) DropTable

func (d *DDLDAO) DropTable(db, table string) error

func (*DDLDAO) TableExists

func (d *DDLDAO) TableExists(db, table string) (bool, error)

func (*DDLDAO) TruncateTable

func (d *DDLDAO) TruncateTable(db, table string) error

type PartsDAO

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

func NewPartsDAO

func NewPartsDAO(db db.Client, lgr log.Logger) *PartsDAO

func (*PartsDAO) AttachTablePartsTo

func (d *PartsDAO) AttachTablePartsTo(dstDB, dstTable, srcDB, srcTable string) error

Jump to

Keyboard shortcuts

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