Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2026 Changes in this version + func Importer(ctx context.Context, dsn, schemaPath *string, ...) error + func WriteSchema(mutations []schemast.Mutator, opts ...ImportOption) error + type ImportOption func(*ImportOptions) + func WithDriver(drv *mux.ImportDriver) ImportOption + func WithExcludedTables(tables []string) ImportOption + func WithSchemaPath(path string) ImportOption + func WithTables(tables []string) ImportOption + type ImportOptions struct + type MySQL struct + func NewMySQL(i *ImportOptions) (*MySQL, error) + func (m *MySQL) SchemaMutations(ctx context.Context) ([]schemast.Mutator, error) + type Postgres struct + func (p *Postgres) SchemaMutations(ctx context.Context) ([]schemast.Mutator, error) + type SchemaImporter interface + SchemaMutations func(context.Context) ([]schemast.Mutator, error) + func NewImport(opts ...ImportOption) (SchemaImporter, error) + func NewPostgreSQL(i *ImportOptions) (SchemaImporter, error) + type Text struct + func NewText(i *ImportOptions) (*Text, error) + func (t *Text) InspectSchema(ctx context.Context, sqlContent string, opts *schema.InspectOptions, ...) (*schema.Schema, error) + func (t *Text) ParseType(raw string) (schema.Type, error) + func (t *Text) SchemaMutations(ctx context.Context) ([]schemast.Mutator, error)