package
0.7.0
Repository: https://github.com/yohobala/taurus_go.git
Documentation: pkg.go.dev

# Functions

NewBuilder 根据提供的Schema,初始化一个生成器。 Params: - c: 代码生成的配置。 - entities: 从entity package中加载的所有entity。 Returns: 0: 生成器。 1: 错误信息。.
NewDatabaseInfo 初始化一个DatabaseInfo Params: - c: 代码生成的配置。 - database: 从entity package中加载的数据库。 Returns: 0: 数据库信息。 1: 错误信息。.
NewEntityInfo 初始化一个EntityInfo Params: - c: 代码生成的配置。 - entity: 从entity package中加载的实体。 Returns: 0: 实体信息。 1: 错误信息。.
No description provided by the author
PrepareEnv 检查是否有runtime.go,如果存在检查导入部分,避免循环导入 如果不存在则创建runtime.go文件 如果存在导入部分则在文件开头添加 "// +build tools\n" 这样在生成代码时,runtime.go文件不会被编译到最终的二进制文件中 Params: - c: 代码生成的配置。 Returns: 0: 无操作函数。 1: 错误信息。.
ValidSchemaName 确定一个名字是否会与任何预定义的名字冲突。 Params: - name: 名字。.

# Variables

DatabaseTemplates 保存database将要生成的文件的模版信息.
EntityTemplates entity的相关模版.
ExtraCodesTemplates 额外的代码模版.
InstanceTemplates 内部使用的模版.
SqlTemplates sql文件的模版.

# Structs

No description provided by the author
Config 代码生成的全局配置,并在所有生成的节点之间共享.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author