db

package
v0.0.0-...-2c8b9bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(config util.Config, logger port.Logger) (*DB, error)

func (*DB) DB

func (db *DB) DB() *bun.DB

type LoggerHook

type LoggerHook struct {
	// contains filtered or unexported fields
}

func (*LoggerHook) AfterQuery

func (h *LoggerHook) AfterQuery(ctx context.Context, event *bun.QueryEvent)

func (*LoggerHook) BeforeQuery

func (h *LoggerHook) BeforeQuery(ctx context.Context, event *bun.QueryEvent) context.Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL