database

package module
v0.0.0-...-e2f8e46 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

README

database

This is a database connection wrapper that I usually use in my Golang project

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	GetConnection() interface{}
}

Database : Interface database object

func NewMySQL

func NewMySQL(connectionString string) (Database, error)

NewMySQL : New Instance of MYSQL

func NewPostgreSQL

func NewPostgreSQL(connectionString string) (Database, error)

NewPostgreSQL : New Instance of MYSQL

Jump to

Keyboard shortcuts

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