database

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBEngine

func NewDBEngine(dbSetting *config.DatabaseSetting) (*gorm.DB, error)

Types

type BaseModel

type BaseModel struct {
	CreatedAt  string `json:"created_at" gorm:"column:created_at"`
	ModifiedAt string `json:"modified_at" gorm:"column:modified_at"`
	IsDeleted  bool   `json:"is_deleted" gorm:"column:is_deleted"`
}

Jump to

Keyboard shortcuts

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