Documentation ¶ Index ¶ type Manager func New(ctx context.Context, dbPath string) (*Manager, error) func (m *Manager) Close() error func (m *Manager) DB(ctx context.Context) QueryManager type Provider type QueryManager Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Manager ¶ type Manager struct { // contains filtered or unexported fields } func New ¶ func New(ctx context.Context, dbPath string) (*Manager, error) func (*Manager) Close ¶ func (m *Manager) Close() error func (*Manager) DB ¶ func (m *Manager) DB(ctx context.Context) QueryManager type Provider ¶ type Provider interface { DB(ctx context.Context) QueryManager } type QueryManager ¶ type QueryManager interface { Query(ctx context.Context, sql string, args ...interface{}) (*db_pool.Rows, error) Exec(ctx context.Context, sql string, args ...interface{}) (*db_pool.Result, error) } Source Files ¶ View all Source files manager.go Click to show internal directories. Click to hide internal directories.