Documentation
¶
Index ¶
- func GetPrimaryKey(table interface{}) []string
- func GetTable(table interface{}) string
- type Columns
- type Table
- func (tb *Table) GetColumns() Columns
- func (tb *Table) GetPrimaryKeys() Columns
- func (tb *Table) GetTableName() string
- func (tb *Table) SqlDelete() (string, error)
- func (tb *Table) SqlInsert() (string, error)
- func (tb *Table) SqlInsertOmiteNil() (string, error)
- func (tb *Table) SqlUpdate() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrimaryKey ¶
func GetPrimaryKey(table interface{}) []string
Types ¶
type Table ¶
type Table struct {
TableName string
PrimaryKeys Columns
Columns Columns
// contains filtered or unexported fields
}
func (*Table) GetColumns ¶
func (*Table) GetPrimaryKeys ¶
func (*Table) GetTableName ¶
func (*Table) SqlInsertOmiteNil ¶
Click to show internal directories.
Click to hide internal directories.