database

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

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(cfg Config) (*sqlx.DB, error)

Open opens connection with database

func Seed

func Seed(db *sqlx.DB) error

Seed seeds database

func StatusCheck

func StatusCheck(db *sqlx.DB) error

StatusCheck returns nil if connection with db is ok

Types

type Config

type Config struct {
	Host       string
	Name       string
	User       string
	Password   string
	RequireSSL bool
}

Config stores connection settings

Jump to

Keyboard shortcuts

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