protoseaql

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(w io.Writer, data *Schema) error

Types

type Column

type Column struct {
	Name    string
	Type    string
	Comment string
}

type Schema

type Schema struct {
	Tables []Table
}

type Table

type Table struct {
	Name    string   // 表名
	Comment string   // 注释
	Engine  string   // 引擎
	Charset string   // 字符集
	Collate string   // 排序规则
	Indexes []string // 索引
	Columns []Column // 列项
}

func IntoTable

func IntoTable(protoMessages []*protogen.Message, disableOrComment bool) ([]Table, error)

IntoTable generates the errors definitions, excluding the package statement.

Jump to

Keyboard shortcuts

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