database

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfg *config.Config) (*bun.DB, error)

New opens and verifies a PostgreSQL connection.

func OpenSQL

func OpenSQL(dsn string) (*sql.DB, error)

OpenSQL creates the shared connector used by the application and isolated tests. It decodes system timestamps in UTC without shifting local capture timestamps.

func WithLogging

func WithLogging(ctx context.Context) context.Context

WithLogging enables query logging for work performed with the returned context when database debugging is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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