factory

package
v0.0.0-...-385b71e Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCreateTableSQL

func GetCreateTableSQL(params *request.LogTableRequest) []string

func GetDropTableSQL

func GetDropTableSQL(params *request.LogTableRequest) []string

func GetUpdateTableSQLByFields

func GetUpdateTableSQLByFields(params *request.LogTableRequest, old []request.Field) []string

Delete view first, then adjust log, and then create view The distributed table adjusts the local table first, and then the distributed table.

Types

type BufferTableFactory

type BufferTableFactory struct {
}

func (*BufferTableFactory) CreateTableSQL

func (b *BufferTableFactory) CreateTableSQL(params *request.LogTableRequest) string

func (*BufferTableFactory) DropTableSQL

func (b *BufferTableFactory) DropTableSQL(params *request.LogTableRequest) string

type LogTableFactory

type LogTableFactory struct {
}

func (*LogTableFactory) CreateDistributedTableSQL

func (l *LogTableFactory) CreateDistributedTableSQL(params *request.LogTableRequest) string

func (*LogTableFactory) CreateTableSQL

func (l *LogTableFactory) CreateTableSQL(params *request.LogTableRequest) string

CreateTableSQL implements Factory.

func (*LogTableFactory) DropDistributedTableSQL

func (l *LogTableFactory) DropDistributedTableSQL(params *request.LogTableRequest) string

func (*LogTableFactory) DropTableSQL

func (l *LogTableFactory) DropTableSQL(params *request.LogTableRequest) string

DropTableSQL implements Factory.

func (*LogTableFactory) UpdateTableSQL

func (l *LogTableFactory) UpdateTableSQL(params *request.LogTableRequest, old []request.Field, distributed bool) string

type NullTableFactory

type NullTableFactory struct {
}

func (*NullTableFactory) CreateTableSQL

func (n *NullTableFactory) CreateTableSQL(params *request.LogTableRequest) string

func (*NullTableFactory) DropTableSQL

func (n *NullTableFactory) DropTableSQL(params *request.LogTableRequest) string

type SQLFactory

type SQLFactory interface {
	CreateTableSQL(params *request.LogTableRequest) string
	DropTableSQL(params *request.LogTableRequest) string
}

type ViewTableFactory

type ViewTableFactory struct {
}

func (*ViewTableFactory) CreateTableSQL

func (v *ViewTableFactory) CreateTableSQL(params *request.LogTableRequest) string

func (*ViewTableFactory) DropTableSQL

func (v *ViewTableFactory) DropTableSQL(params *request.LogTableRequest) string

Jump to

Keyboard shortcuts

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