db

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedEngine = errors.New("coyote/db: unsupported engine")

Functions

func Close

func Close(handle *gorm.DB) error

func Dialector

func Dialector(cfg settings.Database) (gorm.Dialector, error)

func Open

func Open(cfg settings.Database, opts Options) (*gorm.DB, error)

func Pool

func Pool(handle *gorm.DB) (*sql.DB, error)

Types

type Options

type Options struct {
	Logger *slog.Logger
	Debug  bool
}

Jump to

Keyboard shortcuts

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