database

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Db *gorm.DB
}

func Configure

func Configure(_cfg config.Config, logger z.Logger) (Config, error)

Configure sets up the database connection based on the provided configuration and logger. It supports sqlite, postgres, and mysql databases. Will return an error if the connection cannot be established (fatal)

Jump to

Keyboard shortcuts

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