model

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "model",
	Short:   "Model/API code generation",
	GroupID: "codegen",
}

Cmd 是 model 命令组入口。

中文说明: - 它承载与数据库表结构生成相关的几个子命令:test / gen / api。 - 当前这套命令更偏脚手架能力,而不是运行时业务逻辑。

Functions

This section is empty.

Types

type DriverGetter

type DriverGetter interface {
	Driver() string
}

DriverGetter 提供数据库驱动名,用于类型映射。 DBInspector 实现此接口,Columns 返回值中包含 Driver 字段。

Jump to

Keyboard shortcuts

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