mysqlparser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MysqlType2GoType = map[string]string{
	"int":       "int64",
	"tinyint":   "uint8",
	"decimal":   "float64",
	"bigint":    "int64",
	"varchar":   "string",
	"enum":      "string",
	"char":      "string",
	"text":      "string",
	"date":      "time.Time",
	"time":      "time.Time",
	"datetime":  "time.Time",
	"timestamp": "time.Time",
	"json":      "string",
}

Functions

This section is empty.

Types

type MysqlGenerator

type MysqlGenerator struct {
}

func NewMysqlGenerator

func NewMysqlGenerator() *MysqlGenerator

func (*MysqlGenerator) Run

func (m *MysqlGenerator) Run() error

Directories

Path Synopsis
Package dbmodel Code generated by sql2struct.
Package dbmodel Code generated by sql2struct.

Jump to

Keyboard shortcuts

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