db

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping

func Ping(ctx context.Context, db *sql.DB) error

Ping the database to verify DSN provided by the user is valid and the server accessible. If the ping fails exit the program with an error.

func QueryUsers

func QueryUsers(ctx context.Context, db *sql.DB, exclude map[string]bool) ([]string, error)

QueryUsers gets a list of all users in the DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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