Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + func ExtractAlterTableAddColComment(stmt *ast.AlterTableSpec) string + func ExtractAlterTableAddColName(stmt *ast.AlterTableSpec) string + func ExtractAlterTableAddColType(stmt *ast.AlterTableSpec) string + func ExtractAlterTableChangeColComment(spec *ast.AlterTableSpec) string + func ExtractAlterTableChangeColNewName(stmt *ast.AlterTableSpec) string + func ExtractAlterTableChangeColOldName(stmt *ast.AlterTableSpec) string + func ExtractAlterTableChangeColType(spec *ast.AlterTableSpec) string + func ExtractAlterTableDropColName(stmt *ast.AlterTableSpec) string + func ExtractAlterTableModifyColComment(stmt *ast.AlterTableSpec) string + func ExtractAlterTableModifyColName(stmt *ast.AlterTableSpec) string + func ExtractAlterTableModifyColType(stmt *ast.AlterTableSpec) string + func ExtractAlterTableName(stmt *ast.AlterTableStmt) string + func ExtractColComment(col *ast.ColumnDef) string + func ExtractColName(col *ast.ColumnDef) string + func ExtractColType(col *ast.ColumnDef) string + func ExtractCreateName(stmt *ast.CreateTableStmt) string + func ExtractDropNames(stmt *ast.DropTableStmt) []string + func ExtractRename(stmt *ast.RenameTableStmt) (newName, oldName string) + type OnlySchemaOpenapi struct + Components struct{ ... } + Info map[string]string + Openapi string + Paths struct{} + func NewOnlySchemaOpenapi(sql ...string) (*OnlySchemaOpenapi, error) + func (o *OnlySchemaOpenapi) Enter(in ast.Node) (ast.Node, bool) + func (o *OnlySchemaOpenapi) JSON() []byte + func (o *OnlySchemaOpenapi) Leave(in ast.Node) (ast.Node, bool) + func (o *OnlySchemaOpenapi) Write(sql []byte) (int, error) + func (o *OnlySchemaOpenapi) WriteString(sql string) (int, error) + func (o *OnlySchemaOpenapi) YAML() []byte