database

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

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(_db *gorm.DB)

Migrate : migrate model

func Seed

func Seed(_db *gorm.DB)

Seed : seed database

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory : database struct form db factory

func NewDbFactory

func NewDbFactory(cfg *config.Configuration) (*Factory, error)

NewDbFactory : function to generate new database factory

func (*Factory) DBConnection

func (factory *Factory) DBConnection() (*gorm.DB, error)

DBConnection : open connection to Database server

Jump to

Keyboard shortcuts

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