database

package
v0.0.0-...-df8baf0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package database gives access to opening and querying available databases

Package database gives access to opening and querying available databases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenPostgreSQLConnection

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

OpenPostgreSQLConnection returns a db connection to a postgres database

Types

type Queries

type Queries struct {
	*queries.BlogQueries
	*queries.ImageQueries
}

Queries collects all possible app queries into one place

func OpenDB

func OpenDB() (*Queries, error)

OpenDB opens any db connections and returns available queries

Jump to

Keyboard shortcuts

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