Documentation
¶
Index ¶
- func GetPrimaryKey(table interface{}) []string
- func GetTable(table interface{}) string
- type ActionType
- type Column
- type Columns
- type DB
- type Delete
- type Options
- type Table
- func (tb *Table) GetColumns() 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
- func (tb *Table) ValidateInc() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrimaryKey ¶
func GetPrimaryKey(table interface{}) []string
Types ¶
type ActionType ¶ added in v1.0.101
type ActionType int
const ( A_Insert ActionType = iota A_Update A_Delete )
type Column ¶ added in v1.0.97
type Table ¶
type Table struct {
TableName string
ActionType ActionType
Columns Columns
Options Options
// contains filtered or unexported fields
}
func (*Table) GetColumns ¶
func (*Table) GetTableName ¶
func (*Table) ValidateInc ¶ added in v1.0.106
Click to show internal directories.
Click to hide internal directories.