db

package
v0.0.0-...-ce714fd Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Client *ent.Client
}

DB hold database data

func New

func New(cfg config.Config) (DB, error)

New returns a new DB connection

func (DB) Close

func (db DB) Close() error

Close close client connection

Jump to

Keyboard shortcuts

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