database

package
v0.0.0-...-fc1d3c0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(New)

Module registers the database connections with Fx.

Functions

This section is empty.

Types

type Connections

type Connections struct {
	Writer *bun.DB
	Reader *bun.DB
}

Connections bundles writer and reader bun instances.

func New

func New(lc fx.Lifecycle, cfg config.Config, logger *zap.Logger) (*Connections, error)

New establishes writer and reader pools backed by Bun.

Jump to

Keyboard shortcuts

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