Documentation ¶
Index ¶
- Constants
- func GetTableName(i interface{}) string
- func ToSnakeCase(str string) string
- func ValuesEqualPlaceholders(sl []string) string
- func ValuesEqualPlaceholdersAnd(sl []string) string
- func ValuesPlaceholders(sl []string) string
- type CORM
- func (c *CORM) CreateTable(s interface{}) bool
- func (c *CORM) DeleteRowByArgId(s interface{}, id int64) error
- func (c *CORM) DeleteRowById(s interface{}) error
- func (c *CORM) DeleteRows(s interface{}, fieldNames map[string]bool) error
- func (c *CORM) GetDataAll(s interface{}, asMap bool) (interface{}, error)
- func (c *CORM) GetDataById(s interface{}, id int64) (interface{}, error)
- func (c *CORM) GetDataByValue(s interface{}, filter Filters, asMap bool) (interface{}, error)
- func (c *CORM) GetTable(s interface{}) (Table, error)
- func (c *CORM) InsertRow(s interface{}) (int64, error)
- func (c *CORM) MovePosition(table Table) error
- func (c *CORM) UpdateRow(s interface{}, onlyFields bool, fieldNames map[string]bool) error
- type Column
- type FKey
- type FilterFields
- type Filters
- type Order
- type Row
- type Table
Constants ¶
View Source
const ( OperandEqual = "=" OperandMore = ">" OperandLess = "<" OperandNotEqual = "<>" OperandContains = "CONTAINS" OperandIn = "IN" )
Variables ¶
This section is empty.
Functions ¶
func GetTableName ¶
func GetTableName(i interface{}) string
func ToSnakeCase ¶
func ValuesEqualPlaceholders ¶
func ValuesPlaceholders ¶
Types ¶
type CORM ¶
type CORM struct {
// contains filtered or unexported fields
}
func (*CORM) CreateTable ¶
func (*CORM) DeleteRowByArgId ¶
func (*CORM) DeleteRowById ¶
func (*CORM) DeleteRows ¶
func (*CORM) GetDataAll ¶
rarely used
func (*CORM) GetDataById ¶
func (*CORM) GetDataByValue ¶
func (*CORM) MovePosition ¶
type FilterFields ¶
Click to show internal directories.
Click to hide internal directories.