Documentation ¶
Index ¶
- Constants
- type EntityDbManager
- func (em *EntityDbManager) Btoi(b bool) int
- func (em *EntityDbManager) DeleteEntity(entity string, id string) (int64, error)
- func (em *EntityDbManager) GetEntities(entity string, filterParams map[string]string, limit string, offset string, ...) ([]map[string]interface{}, int, error)
- func (em *EntityDbManager) GetEntity(entity string, id string) (map[string]interface{}, error)
- func (em *EntityDbManager) GetIdColumn(entity string) string
- func (em *EntityDbManager) PostEntity(entity string, postData map[string]interface{}) (int64, error)
- func (em *EntityDbManager) UpdateEntity(entity string, id string, updateData map[string]interface{}) (int64, map[string]interface{}, error)
Constants ¶
View Source
const DefaultIdColumn = "id"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityDbManager ¶
func NewEntityDbManager ¶
func NewEntityDbManager(db *sql.DB) *EntityDbManager
func NewEntityDbManagerWithEntityMap ¶
func NewEntityDbManagerWithEntityMap(db *sql.DB, entityMap map[string]string) *EntityDbManager
func (*EntityDbManager) Btoi ¶
func (em *EntityDbManager) Btoi(b bool) int
func (*EntityDbManager) DeleteEntity ¶
func (em *EntityDbManager) DeleteEntity(entity string, id string) (int64, error)
func (*EntityDbManager) GetEntities ¶
func (*EntityDbManager) GetEntity ¶
func (em *EntityDbManager) GetEntity(entity string, id string) (map[string]interface{}, error)
func (*EntityDbManager) GetIdColumn ¶
func (em *EntityDbManager) GetIdColumn(entity string) string
func (*EntityDbManager) PostEntity ¶
func (em *EntityDbManager) PostEntity(entity string, postData map[string]interface{}) (int64, error)
func (*EntityDbManager) UpdateEntity ¶
Click to show internal directories.
Click to hide internal directories.