database

package
v0.0.0-...-b5ce554 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 10 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 {
	Connection *gorm.DB
	// contains filtered or unexported fields
}

DB is struct of this file.

func NewServerBase

func NewServerBase(env config.Configuration) *DB

NewServerBase is start connection database.

func (*DB) Close

func (db *DB) Close()

Close Connection DB

func (*DB) IsErrorRecordNotFound

func (db *DB) IsErrorRecordNotFound(err error) bool

func (*DB) MigrateDB

func (db *DB) MigrateDB()

Jump to

Keyboard shortcuts

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