Documentation
¶
Index ¶
- Constants
- Variables
- func Camel2snake(s string) string
- func Column2DynamicName(tableName, column string) string
- func Column2Modelfield(column string) string
- func ColumnSpace() string
- func CommonEscapeKeywordFormatter(src string) string
- func CommonKeywordFormatter(src string) string
- func Newline() string
- func SelectKeywordFormatter(driver string)
- func Snake2camel(s string) string
- func TableName2ModelName(tableName string) string
- type DBDriver
- type GenerateInfo
- type KeywordFormatter
- type ModelInfo
- type PluginResult
Constants ¶
View Source
const ( MysqlKeywordEscapeCharStart = "`" MysqlKeywordEscapeCharEnd = "`" MysqlEscapeKeywordEscapeCharStart = "`" MysqlEscapeKeywordEscapeCharEnd = "`" PostgresKeywordEscapeCharStart = `"` PostgresKeywordEscapeCharEnd = `"` PostgresEscapeKeywordEscapeCharStart = `\"` PostgresEscapeKeywordEscapeCharEnd = `\"` SqlServerKeywordEscapeCharStart = `[` SqlServerKeywordEscapeCharEnd = `]` SqlServerEscapeKeywordEscapeCharStart = `[` SqlServerEscapeKeywordEscapeCharEnd = `]` DummyKeywordEscapeCharStart = "" DummyKeywordEscapeCharEnd = "" DummyEscapeKeywordEscapeCharStart = "" DummyEscapeKeywordEscapeCharEnd = "" )
View Source
const ( MethodFlag = "method" OutPutSuffixMethod = "output" GenerateMethod = "generate" )
Variables ¶
View Source
var EscapeKeywordEscapeCharEnd = DummyEscapeKeywordEscapeCharEnd
View Source
var EscapeKeywordEscapeCharStart = DummyEscapeKeywordEscapeCharStart
View Source
var KeywordEscapeCharEnd = DummyKeywordEscapeCharEnd
View Source
var KeywordEscapeCharStart = DummyKeywordEscapeCharStart
View Source
var KwFormatter = CommonKeywordFormatter
Functions ¶
func Column2DynamicName ¶
func Column2Modelfield ¶
func ColumnSpace ¶
func ColumnSpace() string
func CommonKeywordFormatter ¶
func SelectKeywordFormatter ¶
func SelectKeywordFormatter(driver string)
func TableName2ModelName ¶
Types ¶
type GenerateInfo ¶
type KeywordFormatter ¶
type PluginResult ¶
Click to show internal directories.
Click to hide internal directories.