Documentation ¶
Index ¶
- Constants
- type Storage
- func (s *Storage) Create(value interface{}, tableName string) error
- func (s *Storage) CreateTable(value interface{}, tableName string) error
- func (s *Storage) Delete(value interface{}, tableName string, hash interface{}, args ...interface{}) error
- func (s *Storage) Find(value interface{}, tableName string, limit int64, expr string, ...) error
- func (s *Storage) First(value interface{}, tableName string, hash interface{}, args ...interface{}) error
- func (s *Storage) Save(value interface{}, tableName string) error
Constants ¶
View Source
const ( // Value 数值对象,通过 ? 代替 Value elemType = iota // Field 结构体字段对象 Field // Operator 操作符 Operator )
View Source
const ( Greater operatorType = iota EqualOrGreater Less EqualOrLess Equal NotEqual And Or Not )
View Source
const ( Hash keyType = iota HashRange )
View Source
const ( DefaultTickTime = time.Second MinTickTime = time.Millisecond * 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
func (*Storage) CreateTable ¶
func (*Storage) Find ¶
func (s *Storage) Find(value interface{}, tableName string, limit int64, expr string, args ...interface{}) error
Find 支持 > ; < ; >= ; <= ; <> ; = ; and ; or ; () ; not 本地存储需要新增,可以按照上述计算符添加
Click to show internal directories.
Click to hide internal directories.