Documentation ¶
Index ¶
- Constants
- Variables
- type DiagramExporter
- func (e *DiagramExporter) Export(_ context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (e *DiagramExporter) ExportPerFile(_ context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (DiagramExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (DiagramExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type ExportParams
- type ExportedPage
- type Exporter
- type GoSQLMigrateExporter
- func (e *GoSQLMigrateExporter) Export(_ context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (e *GoSQLMigrateExporter) ExportPerFile(_ context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (GoSQLMigrateExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (GoSQLMigrateExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type GoStructsExporter
- func (e *GoStructsExporter) Export(_ context.Context, schema *schema.Schema, params *ExportParams) ([]*ExportedPage, error)
- func (e *GoStructsExporter) ExportPerFile(_ context.Context, sch *schema.Schema, params *ExportParams) ([]*ExportedPage, error)
- func (GoStructsExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (GoStructsExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type GooseExporter
- func (e *GooseExporter) Export(ctx context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (e *GooseExporter) ExportPerFile(ctx context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (GooseExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (GooseExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type GooseFixturesExporter
- func (e *GooseFixturesExporter) Export(ctx context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (e *GooseFixturesExporter) ExportPerFile(ctx context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (GooseFixturesExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (GooseFixturesExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type GrpcCrudExporter
- func (e *GrpcCrudExporter) Export(_ context.Context, sc *schema.Schema, params *ExportParams) ([]*ExportedPage, error)
- func (e *GrpcCrudExporter) ExportPerFile(_ context.Context, sc *schema.Schema, params *ExportParams) ([]*ExportedPage, error)
- func (GrpcCrudExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (GrpcCrudExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type ImportParams
- type ImportedFile
- type Importer
- type LaravelMigrationsRawExporter
- func (e *LaravelMigrationsRawExporter) Export(_ context.Context, schema *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (e *LaravelMigrationsRawExporter) ExportPerFile(_ context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (LaravelMigrationsRawExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (LaravelMigrationsRawExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type MarkdownExporter
- func (e *MarkdownExporter) Export(_ context.Context, schema *schema.Schema, params *ExportParams) ([]*ExportedPage, error)
- func (e *MarkdownExporter) ExportPerFile(_ context.Context, sc *schema.Schema, params *ExportParams) ([]*ExportedPage, error)
- func (MarkdownExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- func (MarkdownExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
- type YamlFixturesExporter
- func (e *YamlFixturesExporter) Export(ctx context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (e *YamlFixturesExporter) ExportPerFile(ctx context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
- func (e *YamlFixturesExporter) Import(ctx context.Context, sch *schema.Schema, params *ImportParams) ([]ImportedFile, error)
- func (YamlFixturesExporter) ImportPerFile(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
Constants ¶
View Source
const DiagramExporterName = "diagram"
View Source
const GoSQLMigrateExporterName = "go-sql-migrate"
View Source
const GoStructsExporterName = "go-structs"
View Source
const GooseExporterName = "goose"
View Source
const GooseFixturesExporterName = "goose-fixtures"
View Source
const GrpcCrudExporterName = "grpc-crud"
View Source
const LaravelMigrationsRawExporterName = "laravel-migrations-raw"
View Source
const MarkdownExporterName = "md"
View Source
const (
YamlFixturesExporterName = "yaml-fixtures"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DiagramExporter ¶
type DiagramExporter struct {
// contains filtered or unexported fields
}
func (*DiagramExporter) Export ¶
func (e *DiagramExporter) Export(_ context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
func (*DiagramExporter) ExportPerFile ¶
func (e *DiagramExporter) ExportPerFile( _ context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (DiagramExporter) Import ¶ added in v0.2.0
func (DiagramExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (DiagramExporter) ImportPerFile ¶ added in v0.2.0
func (DiagramExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type ExportParams ¶
type ExportedPage ¶
func (*ExportedPage) Valid ¶
func (p *ExportedPage) Valid() bool
type Exporter ¶
type Exporter interface { Importer ExportPerFile(_ context.Context, sc *schema.Schema, params *ExportParams) ([]*ExportedPage, error) Export(ctx context.Context, schema *schema.Schema, params *ExportParams) ([]*ExportedPage, error) }
func CreateExporter ¶
func NewDiagramExporter ¶
func NewGoStructsExporter ¶
func NewMarkdownExporter ¶
type GoSQLMigrateExporter ¶
type GoSQLMigrateExporter struct {
// contains filtered or unexported fields
}
func NewSQLMigrateExporter ¶
func NewSQLMigrateExporter(renderer *template.Renderer, ddlBuilder *sql.DDLBuilder) *GoSQLMigrateExporter
func (*GoSQLMigrateExporter) Export ¶
func (e *GoSQLMigrateExporter) Export( _ context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (*GoSQLMigrateExporter) ExportPerFile ¶
func (e *GoSQLMigrateExporter) ExportPerFile( _ context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (GoSQLMigrateExporter) Import ¶ added in v0.2.0
func (GoSQLMigrateExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (GoSQLMigrateExporter) ImportPerFile ¶ added in v0.2.0
func (GoSQLMigrateExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type GoStructsExporter ¶
type GoStructsExporter struct {
// contains filtered or unexported fields
}
func (*GoStructsExporter) Export ¶
func (e *GoStructsExporter) Export( _ context.Context, schema *schema.Schema, params *ExportParams, ) ([]*ExportedPage, error)
func (*GoStructsExporter) ExportPerFile ¶
func (e *GoStructsExporter) ExportPerFile( _ context.Context, sch *schema.Schema, params *ExportParams, ) ([]*ExportedPage, error)
func (GoStructsExporter) Import ¶ added in v0.2.0
func (GoStructsExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (GoStructsExporter) ImportPerFile ¶ added in v0.2.0
func (GoStructsExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type GooseExporter ¶
type GooseExporter struct {
// contains filtered or unexported fields
}
func NewGooseExporter ¶
func NewGooseExporter(renderer *template.Renderer, ddlBuilder *sql.DDLBuilder) *GooseExporter
func (*GooseExporter) Export ¶
func (e *GooseExporter) Export(ctx context.Context, sch *schema.Schema, _ *ExportParams) ([]*ExportedPage, error)
func (*GooseExporter) ExportPerFile ¶
func (e *GooseExporter) ExportPerFile( ctx context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (GooseExporter) Import ¶ added in v0.2.0
func (GooseExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (GooseExporter) ImportPerFile ¶ added in v0.2.0
func (GooseExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type GooseFixturesExporter ¶ added in v0.1.1
type GooseFixturesExporter struct {
// contains filtered or unexported fields
}
func NewGooseFixturesExporter ¶ added in v0.1.1
func NewGooseFixturesExporter( dataLoader *db.DataLoader, renderer *template.Renderer, insertBuilder *sql.QueryBuilder, ) *GooseFixturesExporter
func (*GooseFixturesExporter) Export ¶ added in v0.1.1
func (e *GooseFixturesExporter) Export( ctx context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (*GooseFixturesExporter) ExportPerFile ¶ added in v0.1.1
func (e *GooseFixturesExporter) ExportPerFile( ctx context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (GooseFixturesExporter) Import ¶ added in v0.2.0
func (GooseFixturesExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (GooseFixturesExporter) ImportPerFile ¶ added in v0.2.0
func (GooseFixturesExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type GrpcCrudExporter ¶ added in v0.1.1
type GrpcCrudExporter struct {
// contains filtered or unexported fields
}
func NewGrpcCrudExporter ¶ added in v0.1.1
func NewGrpcCrudExporter(renderer *template.Renderer) *GrpcCrudExporter
func (*GrpcCrudExporter) Export ¶ added in v0.1.1
func (e *GrpcCrudExporter) Export( _ context.Context, sc *schema.Schema, params *ExportParams, ) ([]*ExportedPage, error)
func (*GrpcCrudExporter) ExportPerFile ¶ added in v0.1.1
func (e *GrpcCrudExporter) ExportPerFile( _ context.Context, sc *schema.Schema, params *ExportParams, ) ([]*ExportedPage, error)
func (GrpcCrudExporter) Import ¶ added in v0.2.0
func (GrpcCrudExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (GrpcCrudExporter) ImportPerFile ¶ added in v0.2.0
func (GrpcCrudExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type ImportParams ¶ added in v0.2.0
type ImportedFile ¶ added in v0.2.0
type Importer ¶ added in v0.2.0
type Importer interface { Import(ctx context.Context, schema *schema.Schema, params *ImportParams) ([]ImportedFile, error) ImportPerFile(ctx context.Context, sc *schema.Schema, params *ImportParams) ([]ImportedFile, error) }
type LaravelMigrationsRawExporter ¶
type LaravelMigrationsRawExporter struct {
// contains filtered or unexported fields
}
func NewLaravelMigrationsRawExporter ¶
func NewLaravelMigrationsRawExporter( renderer *template.Renderer, ddlBuilder *sql.DDLBuilder, ) *LaravelMigrationsRawExporter
func (*LaravelMigrationsRawExporter) Export ¶
func (e *LaravelMigrationsRawExporter) Export( _ context.Context, schema *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (*LaravelMigrationsRawExporter) ExportPerFile ¶
func (e *LaravelMigrationsRawExporter) ExportPerFile( _ context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (LaravelMigrationsRawExporter) Import ¶ added in v0.2.0
func (LaravelMigrationsRawExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (LaravelMigrationsRawExporter) ImportPerFile ¶ added in v0.2.0
func (LaravelMigrationsRawExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type MarkdownExporter ¶
type MarkdownExporter struct {
// contains filtered or unexported fields
}
func (*MarkdownExporter) Export ¶
func (e *MarkdownExporter) Export( _ context.Context, schema *schema.Schema, params *ExportParams, ) ([]*ExportedPage, error)
func (*MarkdownExporter) ExportPerFile ¶
func (e *MarkdownExporter) ExportPerFile( _ context.Context, sc *schema.Schema, params *ExportParams, ) ([]*ExportedPage, error)
func (MarkdownExporter) Import ¶ added in v0.2.0
func (MarkdownExporter) Import(_ context.Context, _ *schema.Schema, _ *ImportParams) ([]ImportedFile, error)
func (MarkdownExporter) ImportPerFile ¶ added in v0.2.0
func (MarkdownExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
type YamlFixturesExporter ¶ added in v0.1.3
type YamlFixturesExporter struct {
// contains filtered or unexported fields
}
func NewYamlFixturesExporter ¶ added in v0.1.3
func NewYamlFixturesExporter( dataLoader *db.DataLoader, renderer *template.Renderer, inserter *db.Inserter, conn *db.Connection, ) *YamlFixturesExporter
func (*YamlFixturesExporter) Export ¶ added in v0.1.3
func (e *YamlFixturesExporter) Export( ctx context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (*YamlFixturesExporter) ExportPerFile ¶ added in v0.1.3
func (e *YamlFixturesExporter) ExportPerFile( ctx context.Context, sch *schema.Schema, _ *ExportParams, ) ([]*ExportedPage, error)
func (*YamlFixturesExporter) Import ¶ added in v0.2.0
func (e *YamlFixturesExporter) Import(ctx context.Context, sch *schema.Schema, params *ImportParams) ( []ImportedFile, error, )
func (YamlFixturesExporter) ImportPerFile ¶ added in v0.2.0
func (YamlFixturesExporter) ImportPerFile( _ context.Context, _ *schema.Schema, _ *ImportParams, ) ([]ImportedFile, error)
Click to show internal directories.
Click to hide internal directories.