schemaservice

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLike added in v0.0.5

type AppLike interface {
	DB() app.DBClient
	Reload(migration *app.Migration) error
	SchemaBuilder() *schema.Builder
}

type SchemaService

type SchemaService struct {
	// contains filtered or unexported fields
}

func New added in v0.0.5

func New(app AppLike) *SchemaService

func (*SchemaService) Create

func (ss *SchemaService) Create(c app.Context, newSchemaData *schema.Schema) (*schema.Schema, error)

func (*SchemaService) Delete

func (ss *SchemaService) Delete(c app.Context, _ *any) (app.Map, error)

func (*SchemaService) Detail

func (ss *SchemaService) Detail(c app.Context, _ *any) (*schema.Schema, error)

func (*SchemaService) List

func (ss *SchemaService) List(c app.Context, _ *any) ([]*schema.Schema, error)

func (*SchemaService) Update

func (ss *SchemaService) Update(c app.Context, updateData *SchemaUpdateData) (_ *schema.Schema, err error)

type SchemaUpdate

type SchemaUpdate struct {
	// contains filtered or unexported fields
}

type SchemaUpdateData

type SchemaUpdateData struct {
	Data         *schema.Schema    `json:"schema"`
	RenameFields []*app.RenameItem `json:"rename_fields"`
	RenameTables []*app.RenameItem `json:"rename_tables"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL