Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2026 Changes in this version + func MySQLFieldType(sqlType string) (f string) + func PostgresFieldType(sqlType string) (f string) + type ConvertOption func(*ConvertOptions) + func WithDriver(drv *mux.ConvertDriver) ConvertOption + func WithExcludedTables(tables []string) ConvertOption + func WithIncludedTables(tables []string) ConvertOption + func WithModuleName(name string) ConvertOption + func WithModuleVersion(ver string) ConvertOption + func WithProtoPath(path string) ConvertOption + func WithSchemaPath(path string) ConvertOption + func WithServiceType(serviceType string) ConvertOption + func WithSourceModuleName(name string) ConvertOption + type ConvertOptions struct + type FieldData struct + Comment string + Name string + Null bool + Type string + type MySQL struct + func NewMySQL(i *ConvertOptions) (*MySQL, error) + func (m *MySQL) SchemaTables(ctx context.Context) ([]*TableData, error) + type Options struct + Driver string + ExcludedTables []string + IncludedTables []string + Module string + OutputPath string + Service string + Source string + SourceModule string + Version string + type Postgres struct + func (p *Postgres) SchemaTables(ctx context.Context) ([]*TableData, error) + type SchemaConverter interface + SchemaTables func(context.Context) ([]*TableData, error) + func NewConvert(opts ...ConvertOption) (SchemaConverter, error) + func NewPostgreSQL(i *ConvertOptions) (SchemaConverter, error) + type TableData struct + Charset string + Collation string + Comment string + Fields []FieldData + Name string + func (t TableData) WithComment() bool + type Text struct + func NewText(i *ConvertOptions) (*Text, error) + func (t *Text) InspectSchema(sqlContent string, s *schema.Schema) (*schema.Schema, error) + func (t *Text) ParseType(raw string) (schema.Type, error) + func (t *Text) SchemaTables(_ context.Context) ([]*TableData, error)