gen

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildModelBuilderFunc

func BuildModelBuilderFunc(modelName string, columnInfo []tableColumn) string

func BuildModelPatchFunc

func BuildModelPatchFunc(modelName string, columnInfo []tableColumn, isClickhouseTable bool) string

func BuildModelSetFunc

func BuildModelSetFunc(modelName string, columnInfo []tableColumn, addSetter bool) string

func GenClickhouseSql

func GenClickhouseSql(db mysql.Repo, tables []tableInfo, dbName string, chSqlFolder string)

func GenModels

func GenModels(db mysql.Repo, tables []tableInfo, dbName string, markdown bool, modelFileFolder string)

func GenTsDeclares

func GenTsDeclares(db mysql.Repo, tables []tableInfo, dbName string, tsFilePath string)

func QueryTables

func QueryTables(db *gorm.DB, dbName string, tableName string) ([]tableInfo, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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