Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// Create holds the SQL code needed to create the table and all associated
// triggers and constraints.
Create string
// Select holds the prepared statement that can be used to select the primary
// key from the table.
Select func() string
// Insert holds the full prepared statement to insert a row into the table.
Insert func() string
// Fields gives the delta csv column names to use for inserting a row into the table.
Fields []string
// Nulls holds the set of columns that are allowed to be NULL in the table, an empty
// string in the CSV field will indicate a NULL value should be passed into the row.
Nulls []string
// Unwrap can be used to build a linking table when a column has multiple fields
Unwrap string
// Remap can be used to overide a missing column
Remap map[string][]string
}
Click to show internal directories.
Click to hide internal directories.