driver

package
v1.0.167 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 4 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 returns a new database to be used in the application

Types

type DB

type DB struct {
	SQL *sql.DB
}

DB holds a pool of database connections

func ConnectSQL

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

ConnectSQL creates a database pool for PostgreSQL

Jump to

Keyboard shortcuts

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