service

package
v0.0.0-...-48fb7be Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ROOT = "./modules/"

Variables

Functions

func GetDb

func GetDb(dbname string) (db *gorm.DB, mdb string, sdb, driver string)

func ImportSql

func ImportSql(sqlFile, dbName string) error

func ParseDsn

func ParseDsn(dsn string) string

func ParsePgsqlDsn

func ParsePgsqlDsn(dsn string) string

Types

type GenColumnsService

type GenColumnsService struct {
	*base.BaseService
}

func (*GenColumnsService) GetList

func (e *GenColumnsService) GetList(tx *gorm.DB, exclude bool, tableId int) ([]models.GenColumns, error)

type GenTablesService

type GenTablesService struct {
	*base.BaseService
}

func (*GenTablesService) Create

func (e *GenTablesService) Create(m *models.GenTables) error

func (*GenTablesService) Del

func (s *GenTablesService) Del(req base.ReqIds) error

func (*GenTablesService) GenTableInit

func (e *GenTablesService) GenTableInit(dbname string, tableName string, force bool) (models.GenTables, error)

func (*GenTablesService) Get

func (e *GenTablesService) Get(tx *gorm.DB, exclude bool, tableId int) (models.GenTables, error)

func (*GenTablesService) GetDbs

func (e *GenTablesService) GetDbs() []dto.DbOption

func (*GenTablesService) NOMethodsGen

func (e *GenTablesService) NOMethodsGen(tab models.GenTables, force bool) error

func (*GenTablesService) Page

func (s *GenTablesService) Page(req *dto.GenTablesGetPageReq, list *[]models.GenTables, total *int64) error

func (*GenTablesService) Update

func (e *GenTablesService) Update(tab *models.GenTables) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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