database

package
v0.0.0-...-8b4a9fc Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceMongoDB int = iota
)
View Source
const (
	InstancePostgres int = iota
)

Variables

This section is empty.

Functions

func NewDatabaseNoSQLFactory

func NewDatabaseNoSQLFactory(instance int) (repository.NoSQL, error)

NewDatabaseNoSQLFactory will create a new instance of MongoDB

func NewDatabaseSQLFactory

func NewDatabaseSQLFactory(instance int) (repository.SQL, error)

NewDatabaseSQLFactory will create a new instance of PostgreSQL

func NewMongoHandler

func NewMongoHandler(c *config) (*mongoHandler, error)

func NewPostgresHandler

func NewPostgresHandler(c *config) (*postgresHandler, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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