bun

package
v0.0.0-...-febeaf7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewDB

func NewDB(cfg Config, logger *zap.Logger) *bun.DB

Types

type Config

type Config struct {
	Debug bool   `yaml:"debug"`
	DSN   string `yaml:"dsn"`
}

func NewConfig

func NewConfig(cfg *config.YAML) (Config, error)

Jump to

Keyboard shortcuts

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