db

package
v0.0.0-...-0eec0e3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeMongoDB = "mongodb"
	TypeMySQL   = "mysql"
)

Variables

This section is empty.

Functions

func IsErrNotFound

func IsErrNotFound(err error) bool

IsErrNotFound return true if the given error is a not found error

Types

type Connections

type Connections struct {
	Type    string
	MongoDB *mgo.Session
}

Connections all supported types of database connections

func (*Connections) Close

func (c *Connections) Close() error

Close close all underlying connections

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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