Documentation ¶
Index ¶
- Variables
- type Data
- func (d *Data) Close() error
- func (d *Data) Delete(key string) error
- func (d *Data) DeleteKeys(keys ...string) error
- func (d *Data) Exec(sql string, args ...interface{}) (sql.Result, error)
- func (d *Data) Get(key string) ([]byte, error)
- func (d *Data) NewSessionStore() *session.Store
- func (d *Data) Prepare(sql string) *sql.Stmt
- func (d *Data) Reset() error
- func (d *Data) Select(sql string, args ...interface{}) (*sql.Rows, error)
- func (d *Data) SelectRow(sql string, args ...interface{}) *sql.Row
- func (d *Data) Set(key string, value []byte, expiration time.Duration) error
- type Prepare
- type PrepareCallback
- type PrepareQueue
Constants ¶
This section is empty.
Variables ¶
View Source
var PrepareQueuer = NewPrepareQueue()
PrepareQueuer global to allow queuing
Functions ¶
This section is empty.
Types ¶
type Data ¶
Data struct
func (*Data) DeleteKeys ¶
Delete deletes keys from redis store
func (*Data) NewSessionStore ¶
NewSessionStore initializes the Session handler
type PrepareCallback ¶
type PrepareCallback = func(Prepare)
type PrepareQueue ¶
type PrepareQueue struct { Prepared bool // contains filtered or unexported fields }
PrepareQueue adds easy tools to queue sql for prepare in the init() function or any time Before the database is ready
Click to show internal directories.
Click to hide internal directories.