database

package
v0.0.0-...-fb979a2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package database wraps gorm.DB and some constuctor methods

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Db *gorm.DB
}

Database type that contains gorm.DB object

func Open

func Open() *Database

Open opens a regular database

func OpenInMemory

func OpenInMemory() *Database

OpenInMemory opens a in memory database

func OpenTest

func OpenTest() *Database

OpenTest opens a database in current dir for testing purposes

Jump to

Keyboard shortcuts

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