database

package
v0.0.0-...-e5836b3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: GPL-3.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

func New

func New(options *DbOptions) *Db

func (*Db) Connect

func (db *Db) Connect() error

func (*Db) GetContext

func (db *Db) GetContext() context.Context

func (*Db) GetDatabase

func (db *Db) GetDatabase() *gorm.DB

type DbOptions

type DbOptions struct {
	Ctx      context.Context
	Name     string
	Dsn      string
	Host     string
	Username string
	Password string
	Options  string
}

Jump to

Keyboard shortcuts

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