protoseaql

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 9 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 // sql 定义
	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 // 索引
	ForeignKeys []string // 外键
	Columns     []Column // 列项
}

func IntoTable

func IntoTable(protoMessages []*protogen.Message) ([]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