Documentation ¶
Index ¶
- func ConvertMysqlTypeToProtoType(fieldSlic []SqlFieldDesc) string
- func DealServerName(tableName string) string
- func FirstToUpper(s string) string
- func Generator(connString string, tableName string, fileDir string, packageName string)
- func GetBetweenStr(str, start, end string) string
- func GetDB(connString string) *sql.DB
- func PathExists(path string) (bool, error)
- func WriteFile(fileDir string, fileName string, file string, mode os.FileMode) error
- type SqlFieldDesc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMysqlTypeToProtoType ¶
func ConvertMysqlTypeToProtoType(fieldSlic []SqlFieldDesc) string
convert mysql type to proto type
func GetBetweenStr ¶
func PathExists ¶
Types ¶
type SqlFieldDesc ¶
func GetMysqlStruct ¶
func GetMysqlStruct(connString string, tableName string) ([]SqlFieldDesc, error)
获取mysql结构的slic
Click to show internal directories.
Click to hide internal directories.