database

package
v0.0.0-...-465781a Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package database handles database connection operations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection(ctx context.Context, conn *sql.DB)

CloseConnection closes a database connection and logs any resulting errors

func CloseRows

func CloseRows(ctx context.Context, rows *sql.Rows)

CloseRows closes a database Rows object and logs any resulting errors

func GetConnection

func GetConnection(ctx context.Context, connectionString string) (*sql.DB, error)

GetConnection returns an established connection to a database using the supplied connection string

Types

This section is empty.

Jump to

Keyboard shortcuts

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