database

package
v0.0.0-...-4670381 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

database package provides a shared database for the whole application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the database if open.

func Get

func Get() *sql.DB

Get returns the applications shared database.

func IsOpen

func IsOpen() bool

IsOpen returns true if the shared database is open.

func Open

func Open() *sql.DB

Open opens the database if not already open.

Types

This section is empty.

Jump to

Keyboard shortcuts

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