sqlmysql

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCopy

func NewCopy() DatabaseTransformer

Types

type MySQLExtraData

type MySQLExtraData struct {
	Delimiter      string
	InDelimiterDef bool
	EndMarks       map[string]struct{}
}

MySQLExtraData implements the ExtraData interface for MySQL

func (*MySQLExtraData) IsBlockEnd

func (e *MySQLExtraData) IsBlockEnd(line string) bool

type MySQLType

type MySQLType int

MySQLType implements the SQLType interface for MySQL

const (
	MySQLTypeUnknown MySQLType = iota
	MySQLTypeSelect
	MySQLTypeInsert
	MySQLTypeUpdate
	MySQLTypeDelete
	MySQLTypeCreateTable
	MySQLTypeCreateIndex
	MySQLTypeCreateView
	MySQLTypeCreateFunction
	MySQLTypeCreateProcedure
	MySQLTypeCreateTrigger
	MySQLTypeDrop
	MySQLTypeAlter
	MySQLTypeTransaction
	MySQLTypeOther
)

func (MySQLType) AsInt

func (t MySQLType) AsInt() int

AsInt returns the integer representation of the SQL type

func (MySQLType) IsBlock

func (t MySQLType) IsBlock() bool

IsBlock determines if the SQL type represents a block statement

func (MySQLType) IsNull

func (t MySQLType) IsNull() bool

func (MySQLType) String

func (t MySQLType) String() string

String returns the string representation of the SQL type

Jump to

Keyboard shortcuts

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