Help us shape the future of Go! Take the 2026 Go Developer Survey

db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUrl

func GetUrl() string

Types

type DBClient

type DBClient struct {
	DB              *sql.DB
	Connected       bool
	ConnectionError error
}

DBClient represents a client to the database with a connection status.

func NewDBClient

func NewDBClient() *DBClient

NewDBClient initializes a new database client.

func (*DBClient) Close

func (client *DBClient) Close() error

Close terminates the connection to the database.

func (*DBClient) Connect

func (client *DBClient) Connect() error

Connect establishes a connection to the database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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