database

package
v0.0.0-...-cc0f800 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(cfg config.DBConfig, provider Provider) (*sql.DB, error)

func OpenPostgres

func OpenPostgres(cfg config.PostgresConfig) (*sql.DB, error)

func OpenSQLite

func OpenSQLite(cfg config.SQLiteConfig) (*sql.DB, error)

Types

type Provider

type Provider string
const (
	ProviderPostgres Provider = "postgres"
	ProviderSQLite   Provider = "sqlite"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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