database

package
v0.0.0-...-9249d99 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostgreSQLConnection

func PostgreSQLConnection() (*sqlx.DB, error)

PostgreSQLConnection func for connection to PostgreSQL database.

Types

type Queries

type Queries struct {
	*services.UserQueries // load services from User model
	*services.BookQueries // load services from Book model
}

Queries struct for collect all app services.

func OpenDBConnection

func OpenDBConnection() (*Queries, error)

OpenDBConnection func for opening database connection.

Jump to

Keyboard shortcuts

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