database

package
v0.0.2-0...-83fa1ee Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MysqlConnection

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

MysqlConnection func for connection to Mysql database.

func PostgreSQLConnection

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

PostgreSQLConnection func for connection to PostgreSQL database.

Types

type Queries

type Queries struct {
	*queries.UserQueries // load queries from User model

}

Queries struct for collect all app queries.

func Connect

func Connect() (*Queries, error)

Connect func for opening database connection.

Jump to

Keyboard shortcuts

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