ddllistener

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateTableListener

type CreateTableListener struct {
	*parser.BaseCreateTableParserListener

	SourceFile  string
	TargetFile  string
	PackageName string
	Imports     []string
	Structs     []*GoStruct
}

func (*CreateTableListener) EnterComment

func (c *CreateTableListener) EnterComment(ctx *parser.CommentContext)

func (*CreateTableListener) EnterCreateDefinition

func (c *CreateTableListener) EnterCreateDefinition(ctx *parser.CreateDefinitionContext)

func (*CreateTableListener) EnterDataType

func (c *CreateTableListener) EnterDataType(ctx *parser.DataTypeContext)

func (*CreateTableListener) EnterNullNotNull

func (c *CreateTableListener) EnterNullNotNull(ctx *parser.NullNotNullContext)

func (*CreateTableListener) EnterTableName

func (c *CreateTableListener) EnterTableName(ctx *parser.TableNameContext)

func (*CreateTableListener) EnterTableOption

func (c *CreateTableListener) EnterTableOption(ctx *parser.TableOptionContext)

type Definition

type Definition struct {
	SQLName       string // SQL field name
	SQLType       string // SQL field type
	Name          string // Go struct field name
	Type          string // Go struct field type
	NotNull       bool
	Unsigned      bool
	SQLComment    string // SQL comment
	InlineComment string // inline comment
	Tags          string
	Size          uintptr
}

type GoStruct

type GoStruct struct {
	TableName    string
	StructName   string
	TableComment string
	Definitions  []*Definition
}

Jump to

Keyboard shortcuts

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