Documentation ¶
Index ¶
- Constants
- func BuildConditions(equal map[string]interface{}, in map[string]interface{}) ([]string, []interface{}, error)
- func BuildFeatureDataTableSchema(tableName string, entity *types.Entity, features types.FeatureList) string
- func InsertRecordsToTable(db *sqlx.DB, ctx context.Context, tableName string, records []interface{}, ...) error
- func InsertRecordsToTableTx(tx *sqlx.Tx, ctx context.Context, tableName string, records []interface{}, ...) error
- func Quote(quote string, fields ...string) string
- func TempTable(prefix string) string
- func WithTransaction(db *sqlx.DB, ctx context.Context, fn TxFn) (err error)
- type RowMap
- type TxFn
Constants ¶
View Source
const CREATE_DATA_TABLE = `CREATE TABLE "{{TABLE_NAME}}" (
"{{ENTITY_NAME}}" VARCHAR({{ENTITY_LENGTH}}) PRIMARY KEY,
{{COLUMN_DEFS}});
`
Variables ¶
This section is empty.
Functions ¶
func BuildConditions ¶
func InsertRecordsToTable ¶ added in v0.0.2
func InsertRecordsToTableTx ¶ added in v0.0.2
Types ¶
Click to show internal directories.
Click to hide internal directories.