Documentation ¶
Index ¶
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"
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)
type ExportParams ¶
type ExportedPage ¶
func (*ExportedPage) Valid ¶
func (p *ExportedPage) Valid() bool
type Exporter ¶
type Exporter interface { 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)
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)
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)
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)
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)
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)
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)
Click to show internal directories.
Click to hide internal directories.