Documentation
¶
Index ¶
- func NewBunStorageAdapter(db BunExecutor) interfaces.StorageProvider
- func NewNoOpProvider() interfaces.StorageProvider
- type BunExecutor
- type BunStorageAdapter
- func (a *BunStorageAdapter) Exec(ctx context.Context, query string, args ...any) (interfaces.Result, error)
- func (a *BunStorageAdapter) Query(ctx context.Context, query string, args ...any) (interfaces.Rows, error)
- func (a *BunStorageAdapter) Transaction(ctx context.Context, fn func(tx interfaces.Transaction) error) error
- type NoOpProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBunStorageAdapter ¶
func NewBunStorageAdapter(db BunExecutor) interfaces.StorageProvider
func NewNoOpProvider ¶
func NewNoOpProvider() interfaces.StorageProvider
Types ¶
type BunExecutor ¶
type BunStorageAdapter ¶
type BunStorageAdapter struct {
// contains filtered or unexported fields
}
func (*BunStorageAdapter) Exec ¶
func (a *BunStorageAdapter) Exec(ctx context.Context, query string, args ...any) (interfaces.Result, error)
func (*BunStorageAdapter) Query ¶
func (a *BunStorageAdapter) Query(ctx context.Context, query string, args ...any) (interfaces.Rows, error)
func (*BunStorageAdapter) Transaction ¶
func (a *BunStorageAdapter) Transaction(ctx context.Context, fn func(tx interfaces.Transaction) error) error
type NoOpProvider ¶
type NoOpProvider struct{}
func (*NoOpProvider) Exec ¶
func (*NoOpProvider) Exec(context.Context, string, ...any) (interfaces.Result, error)
func (*NoOpProvider) Query ¶
func (*NoOpProvider) Query(context.Context, string, ...any) (interfaces.Rows, error)
func (*NoOpProvider) Transaction ¶
func (*NoOpProvider) Transaction(_ context.Context, fn func(tx interfaces.Transaction) error) error
Click to show internal directories.
Click to hide internal directories.