provider

package
v0.0.0-...-11fa6ca Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mysql

type Mysql struct {
	// contains filtered or unexported fields
}

func NewMysql

func NewMysql(config *config.Database) *Mysql

func (*Mysql) Connect

func (m *Mysql) Connect(cfg *config.Database) (*gorm.DB, error)

func (*Mysql) DSN

func (m *Mysql) DSN() string

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func NewPostgres

func NewPostgres(config *config.Database) *Postgres

func (*Postgres) Connect

func (p *Postgres) Connect(cfg *config.Database) (*gorm.DB, error)

func (*Postgres) DSN

func (p *Postgres) DSN() string

type Sqlite

type Sqlite struct {
	// contains filtered or unexported fields
}

func NewSqlite

func NewSqlite(
	config *config.Database,
	log *logger.Logger,
) *Sqlite

func (*Sqlite) Connect

func (s *Sqlite) Connect(cfg *config.Database) (*gorm.DB, error)

func (*Sqlite) DSN

func (s *Sqlite) DSN() string

Jump to

Keyboard shortcuts

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