driver

package
v0.0.0-...-a4c968e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(dsn string) (*sql.DB, error)

NewDatabase creates a new database connection for the application.

Types

type DB

type DB struct {
	SQL *sql.DB
}

DB holds the database connection.

func ConnectSQL

func ConnectSQL(dsn string) (*DB, error)

ConnectSQL establishes a database connection pool for PostgreSQL.

Jump to

Keyboard shortcuts

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