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) ValidateRequired() 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 Column struct {
Name string
PrimaryKey bool
UniqueKey bool
Required bool
Insert bool
Update bool
Delete bool
Where bool
TimeNow bool
Md5 bool
Upper bool
Lower bool
AutoGuid bool
Coalesce bool
Omitempty bool
Nullempty bool
ActionType bool
ReturnValue bool
// contains filtered or unexported fields
}
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) ValidateRequired ¶ added in v1.0.162
Click to show internal directories.
Click to hide internal directories.