model

package
v1.8.97 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenModels

func GenModels(tables []*schema.Table, config *lib.Config) error

GenModels generates models

Types

type GoModelTemplateFieldVal

type GoModelTemplateFieldVal struct {
	Name       string
	Type       string
	DBType     string
	GoType     string
	FormatType string
}

schema.GoTypeFormatString

type GoModelTemplateVals

type GoModelTemplateVals struct {
	Name          string
	Schema        string
	HasNull       bool
	HasAccountID  bool
	HasUserID     bool
	UpdateColumns []GoModelTemplateFieldVal
	InsertColumns []GoModelTemplateFieldVal
	PrimaryKey    string
	Fields        []GoModelTemplateFieldVal
	SelectFields  []GoModelTemplateFieldVal
}

Jump to

Keyboard shortcuts

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