database

package
v0.0.0-...-85fcf1c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOfDialects

func ListOfDialects() []string

ListOfDialects returns list of available DB drivers

func WithDatabase

func WithDatabase(ctx context.Context, master, slave *gorm.DB) context.Context

WithDatabase puts databases to context

Types

type DB

type DB = gorm.DB

func Connect

func Connect(ctx context.Context, connection string, debug bool) (*DB, error)

Connect to database

Jump to

Keyboard shortcuts

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