db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSql

func LoadSql(log *zap.SugaredLogger, f string, dsn *url.URL) error

func Open

func Open(dsn *url.URL) (*sqlx.DB, error)

func QuerySql

func QuerySql(log *zap.SugaredLogger, f string, dsn *url.URL) error

func StatusCheck

func StatusCheck(ctx context.Context, db *sqlx.DB, log *zap.SugaredLogger) error

StatusCheck returns nil if it can successfully talk to the database. It returns a non-nil error otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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