Documentation ¶
Index ¶
- func All(tableName string) ([]map[string]interface{}, error)
- func CloseDBConnection()
- func Delete(tableName string, itemID uint64) error
- func InitDBConnection(logger *log.Logger, tables ...string)
- func ManyByIntField(tableName, fieldName string, fieldValue int) ([]map[string]interface{}, error)
- func ManyByStringField(tableName, fieldName, fieldValue string) ([]map[string]interface{}, error)
- func Show(itemID uint64, tableName string) (map[string]interface{}, error)
- func SingleByStringField(tableName, fieldName, fieldValue string) (map[string]interface{}, uint64, error)
- func Store(item map[string]interface{}, tableName string) (uint64, error)
- func Update(item map[string]interface{}, tableName string, itemID uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseDBConnection ¶
func CloseDBConnection()
CloseDBConnection closes the database connection and releases the db so that other apps can use it
func InitDBConnection ¶
InitDBConnection initiates the connection with a database
func ManyByIntField ¶
func ManyByStringField ¶
func SingleByStringField ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.