Documentation ¶
Index ¶
- func AppElement(obj interface{}, fieldname string, args ...interface{})
- func BuildRelation()
- func Delete(obj interface{}) error
- func DeleteKeyField(typ string, name string, fn string, id int64)
- func Insert(obj interface{}, index bool) (int64, error)
- func InsertKeyField(typ, name string, fn string, id int64, value interface{}) error
- func NewId(name string) int64
- func OpenRedis(proto, addr string)
- func RemElement(obj interface{}, fieldname string, args ...interface{}) error
- func Restore(obj interface{}, fieldname string) error
- func ReturnId(name string, id int64)
- func Save(obj interface{}, fieldname string) error
- func Select(Id int64, name string, res interface{}) error
- func SelectIndex(name, fn, value string) (int64, error)
- func SelectKeyField(keyTyp string, name string, fn string, id int64, res interface{}) (err error)
- func Update(obj interface{}, objName string, objId int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppElement ¶
func AppElement(obj interface{}, fieldname string, args ...interface{})
向slice或map中追加一个元素, 并保存 当map时, 使用HSET 当slice时, 使用RPUSH
func BuildRelation ¶
func BuildRelation()
func InsertKeyField ¶
将结构体的field插入到数据库中 typ should be "key" or "hash"
func RemElement ¶
从slice或map中删除一个元素, 并保存
func SelectIndex ¶
func SelectKeyField ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.