Documentation ¶
Index ¶
- Constants
- type PingLogic
- func (s *PingLogic) CreateTable(tableNameCK, engine, partition, orderFiled, tableName string) error
- func (s *PingLogic) Exchange(tableName, tableNameCK, rename string) error
- func (s *PingLogic) GetCreateTableSql(tableNameCK, engine, partition, orderFiled, tableName string) string
- func (s *PingLogic) GetInsertTableSql(tableNameCK, tableName, where string) string
- func (s *PingLogic) InsertTable(tableName, tableNameCK string, whereCus string) error
- func (s *PingLogic) Run(tables []string) error
- func (s *PingLogic) Sync(v config.Table) error
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 ¶
func NewPingLogic ¶
func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic
func (*PingLogic) CreateTable ¶
func (*PingLogic) GetCreateTableSql ¶
func (*PingLogic) GetInsertTableSql ¶
func (*PingLogic) InsertTable ¶
Click to show internal directories.
Click to hide internal directories.