models

package
v0.0.0-...-15b3647 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct {
	TableName    string
	CreateColumn []CreateColumn
}

type CreateColumn

type CreateColumn struct {
	ColumnName     string
	ColumnType     string
	ColumnTypeSize int
	IsPrimaryKey   bool
	IsNotNull      bool
}

type Token

type Token struct {
	Identifier TokenType
	Value      string
}

type TokenType

type TokenType int
const (
	Identifier TokenType = iota
	Separator
	Keyword
	Type
)

type Update

type Update struct {
	UpdateType   UpdateType
	TableName    string
	CreateColumn CreateColumn
}

type UpdateType

type UpdateType int
const (
	CreateType UpdateType = iota
	RemoveType
)

Jump to

Keyboard shortcuts

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