schemarepository

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_CHARACTER_LIMIT = 65535

Variables

View Source
var UseGlueConfig = "useGlue"
View Source
var (
	VARCHAR_TYPE = fmt.Sprintf("varchar(%d)", MAX_CHARACTER_LIMIT)
)

Functions

This section is empty.

Types

type GlueSchemaRepository

type GlueSchemaRepository struct {
	Warehouse warehouseutils.Warehouse
	Namespace string
	// contains filtered or unexported fields
}

func NewGlueSchemaRepository

func NewGlueSchemaRepository(wh warehouseutils.Warehouse) (*GlueSchemaRepository, error)

func (*GlueSchemaRepository) AddColumns added in v1.3.0

func (gl *GlueSchemaRepository) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)

func (*GlueSchemaRepository) AlterColumn

func (gl *GlueSchemaRepository) AlterColumn(tableName, columnName, columnType string) (err error)

func (*GlueSchemaRepository) CreateSchema

func (gl *GlueSchemaRepository) CreateSchema() (err error)

func (*GlueSchemaRepository) CreateTable

func (gl *GlueSchemaRepository) CreateTable(tableName string, columnMap map[string]string) (err error)

func (*GlueSchemaRepository) FetchSchema

type LocalSchemaRepository

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

func (*LocalSchemaRepository) AddColumns added in v1.3.0

func (ls *LocalSchemaRepository) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)

func (*LocalSchemaRepository) AlterColumn

func (ls *LocalSchemaRepository) AlterColumn(tableName, columnName, columnType string) (err error)

func (*LocalSchemaRepository) CreateSchema

func (*LocalSchemaRepository) CreateSchema() (err error)

func (*LocalSchemaRepository) CreateTable

func (ls *LocalSchemaRepository) CreateTable(tableName string, columnMap map[string]string) (err error)

func (*LocalSchemaRepository) FetchSchema

type SchemaRepository

type SchemaRepository interface {
	FetchSchema(warehouse warehouseutils.Warehouse) (warehouseutils.SchemaT, warehouseutils.SchemaT, error)
	CreateSchema() (err error)
	CreateTable(tableName string, columnMap map[string]string) (err error)
	AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
	AlterColumn(tableName, columnName, columnType string) (err error)
}

Jump to

Keyboard shortcuts

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