Documentation ¶
Index ¶
- Constants
- func DeleteMetaByKey(key string) error
- func InsertOrUpdate(meta *Meta) error
- func IsNonUniqueNameError(err error) bool
- func QueryAllMeta(key string, condition string) (*[]Meta, error)
- func QueryMeta(key string, condition string) (*[]string, error)
- func SaveMeta(meta *Meta) error
- func UpdateMeta(meta *Meta) error
- func UpdateMetaField(key string, col string, value interface{}) error
- func UpdateMetaFields(key string, cols map[string]interface{}) error
- type Meta
Constants ¶
View Source
const (
MetaTableName = "meta"
)
constant metatable name reference
Variables ¶
This section is empty.
Functions ¶
func IsNonUniqueNameError ¶ added in v1.6.1
IsNonUniqueNameError tests if the error returned by sqlite is unique. It will check various sqlite versions.
func QueryAllMeta ¶
QueryAllMeta return all meta, if no error, Meta not null
func UpdateMetaField ¶
UpdateMetaField update special field
func UpdateMetaFields ¶
UpdateMetaFields update special fields
Types ¶
Click to show internal directories.
Click to hide internal directories.