driver

package
v0.0.0-...-7b3d061 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: GPL-2.0 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 for the application

Types

type DB

type DB struct {
	SQL *sql.DB
}

DB holds the database connection pool

func ConnectSQL

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

ConnectSQL creates database pool for Postgres

Jump to

Keyboard shortcuts

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