Documentation
¶
Index ¶
- Variables
- func StmtExecNoResults(stmt *sqlite.Stmt) (err error)
- type Conn
- func (c *Conn) Begin(ctx context.Context) (err error)
- func (c *Conn) Close() (err error)
- func (c *Conn) Commit(ctx context.Context) (err error)
- func (c *Conn) Exec(ctx context.Context, query string, bind func(stmt *sqlite.Stmt), ...) (err error)
- func (c *Conn) ExecCached(ctx context.Context, query string, bind func(stmt *sqlite.Stmt), ...) (err error)
- func (c *Conn) ExecNoResult(ctx context.Context, query string) (err error)
- func (c *Conn) IsClosed() bool
- func (c *Conn) Prepare(query string) (Stmt, error)
- func (c *Conn) Query(ctx context.Context, query string) (*sqlite.Stmt, error)
- func (c *Conn) Rollback(ctx context.Context) (err error)
- type ConnManager
- type Stmt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDBIsClosed = errors.New("any-store: db is closed") ErrDBIsNotOpened = errors.New("any-store: db is not opened") )
Functions ¶
func StmtExecNoResults ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) ExecCached ¶
func (*Conn) ExecNoResult ¶
type ConnManager ¶
type ConnManager struct {
// contains filtered or unexported fields
}
func NewConnManager ¶
func NewConnManager(path string, pragma map[string]string, writeCount, readCount int, fr *registry.FilterRegistry, sr *registry.SortRegistry) (*ConnManager, error)
func (*ConnManager) Close ¶
func (c *ConnManager) Close() (err error)
func (*ConnManager) GetRead ¶
func (c *ConnManager) GetRead(ctx context.Context) (conn *Conn, err error)
func (*ConnManager) GetWrite ¶
func (c *ConnManager) GetWrite(ctx context.Context) (conn *Conn, err error)
func (*ConnManager) ReleaseRead ¶
func (c *ConnManager) ReleaseRead(conn *Conn)
func (*ConnManager) ReleaseWrite ¶
func (c *ConnManager) ReleaseWrite(conn *Conn)
Click to show internal directories.
Click to hide internal directories.