db

package
v0.0.0-...-4d27fde Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB(db *reform.DB)

CloseDB closes database.

func Connect

func Connect(connectArgs string) (*sql.DB, error)

func ConnectArgs

func ConnectArgs(cfg *config.DB) string

ConnectArgs returns connection string for database connection.

func NewDB

func NewDB(conn *sql.DB) (*reform.DB, error)

NewDB connects to a database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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