database

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

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

Go to latest
Published: Feb 19, 2026 License: AGPL-3.0 Imports: 7 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 {
	Connection *gorm.DB
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(config DBConfig) (*DB, error)

func OpenConnection

func OpenConnection(logger *slog.Logger, dialector gorm.Dialector) (*DB, error)

func (*DB) Close

func (db *DB) Close()

type DBConfig

type DBConfig struct {
	Url      string
	MaxConns int32
}

Jump to

Keyboard shortcuts

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