database

package
v0.0.0-...-905d515 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorConfig

type ConnectorConfig struct {
	Host     string
	Username string
	DbName   string
	Password string
	SslMode  string
}

func LoadConfigFromEnv

func LoadConfigFromEnv(ctx context.Context) ConnectorConfig

type ConnectorFunc

type ConnectorFunc func() (*gorm.DB, error)

func NewPostgreSQLConnector

func NewPostgreSQLConnector(ctx context.Context, cfg ConnectorConfig) ConnectorFunc

func NewSQLiteConnector

func NewSQLiteConnector(ctx context.Context) ConnectorFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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