logic

package
v0.0.0-...-ef08f26 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CreateTableSql = "CREATE TABLE IF NOT EXISTS %s ENGINE = %s %s ORDER BY %s AS "
View Source
const InsertTableSql = "INSERT INTO %s "
View Source
const MysqlHost = "SELECT %s FROM mysql('%s:%d','%s','%s', '%s', '%s') %s;"

Variables

This section is empty.

Functions

This section is empty.

Types

type PingLogic

type PingLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPingLogic

func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic

func (*PingLogic) CreateTable

func (s *PingLogic) CreateTable(tableNameCK, engine, partition, orderFiled, tableName string) error

func (*PingLogic) Exchange

func (s *PingLogic) Exchange(tableName, tableNameCK, rename string) error

func (*PingLogic) GetCreateTableSql

func (s *PingLogic) GetCreateTableSql(tableNameCK, engine, partition, orderFiled, tableName string) string

func (*PingLogic) GetInsertTableSql

func (s *PingLogic) GetInsertTableSql(tableNameCK, tableName, where string) string

func (*PingLogic) InsertTable

func (s *PingLogic) InsertTable(tableName, tableNameCK string, whereCus string) error

func (*PingLogic) Run

func (s *PingLogic) Run(tables []string) error

func (*PingLogic) Sync

func (s *PingLogic) Sync(v config.Table) error

Jump to

Keyboard shortcuts

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