build

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsertOnlyDao

type InsertOnlyDao struct {
	Table *Table
	// contains filtered or unexported fields
}

func NewInsertOnlyDao

func NewInsertOnlyDao(tableCol map[string]string, tableName string, count, batches int, deg int) *InsertOnlyDao

func (*InsertOnlyDao) GetPrefixSql

func (dao *InsertOnlyDao) GetPrefixSql(sql *strings.Builder)

func (*InsertOnlyDao) GetSql

func (dao *InsertOnlyDao) GetSql() *strings.Builder

获取和返回SQL

func (*InsertOnlyDao) Insert

func (dao *InsertOnlyDao) Insert()

最终新增

type Table

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

func NewTable

func NewTable(tableColumn map[string]string, tableName string) *Table

创建表格的基础元素

func (*Table) GetTableColName

func (t *Table) GetTableColName() []string

func (*Table) GetTableColType

func (t *Table) GetTableColType() []string

func (*Table) GetTableName

func (t *Table) GetTableName() string

func (*Table) GetTableRandColVal

func (t *Table) GetTableRandColVal() *strings.Builder

根据设定的字段类型返回随机的数据值

Jump to

Keyboard shortcuts

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