database

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Conn               *gorm.DB
	TagRepository      *repositories.TagRepository
	BookmarkRepository *repositories.BookmarkRepository
}

Database holds a connection

func GetDatabase

func GetDatabase() *Database

GetDatabase creates connection to database

func (*Database) Migrate

func (db *Database) Migrate()

Migrate database

func (*Database) Setup

func (db *Database) Setup()

Setup database.

Jump to

Keyboard shortcuts

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