parser

package
v0.0.0-...-87bc42c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	NameOriginal string
	Name         string
	DataType     string
	Comment      string
}

Field the struct of field of table

type Primary

type Primary struct {
	Field
	AutoIncrement bool
}

Primary the primary field of table

type Table

type Table struct {
	Name        string
	Db          string
	PrimaryKey  Primary
	UniqueIndex map[string][]*Field
	Fields      []*Field
	ContainsPQ  bool
}

Table the struct of table

func Parse

func Parse(filename, database string, strict bool) ([]*Table, error)

Parse 解析

Jump to

Keyboard shortcuts

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