Documentation
¶
Index ¶
- func GetPrimaryKey(table interface{}) []string
- func GetTable(table interface{}) string
- type Columns
- type Options
- 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) SqlStatus() (string, error)
- func (tb *Table) SqlUpdate() (string, error)
- func (tb *Table) Validate() 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
CRUD string
PrimaryKeys Columns
Columns Columns
Options Options
// contains filtered or unexported fields
}
func (*Table) GetColumns ¶
func (*Table) GetPrimaryKeys ¶
func (*Table) GetTableName ¶
Click to show internal directories.
Click to hide internal directories.