Documentation
¶
Index ¶
- Variables
- func StmtExecNoResults(stmt *sqlite.Stmt) (err error)
- type Conn
- func (c *Conn) Backup(ctx context.Context, path string) (err error)
- func (c *Conn) Begin(ctx context.Context) (err error)
- func (c *Conn) BeginImmediate(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
- func (c *ConnManager) Close() (err error)
- func (c *ConnManager) GetRead(ctx context.Context) (conn *Conn, err error)
- func (c *ConnManager) GetWrite(ctx context.Context) (conn *Conn, err error)
- func (c *ConnManager) ReleaseRead(conn *Conn)
- func (c *ConnManager) ReleaseWrite(conn *Conn)
- func (c *ConnManager) StalledConnections(threshold time.Duration) (stalledTraces []string)
- type Stmt
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func StmtExecNoResults ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) BeginImmediate ¶ added in v0.1.6
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, preAllocatedPageCacheSize int, fr *registry.FilterRegistry, sr *registry.SortRegistry, version int, enableStalledConnDetector bool, stalledConnDetectorCloseTimeout time.Duration, ) (*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)
func (*ConnManager) StalledConnections ¶ added in v0.1.13
func (c *ConnManager) StalledConnections(threshold time.Duration) (stalledTraces []string)
StalledConnections returns a list of stalled connections works only if stalledConnDetectorEnabled is true
Click to show internal directories.
Click to hide internal directories.