ddl

package
v0.0.0-...-b185596 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddReq

type AddReq = ExecuteReq

type AddResp

type AddResp = ExecuteResp

type CreateReq

type CreateReq = ExecuteReq

type CreateResp

type CreateResp = ExecuteResp

type DDLService

type DDLService interface {
	Create(context.Context, *CreateReq) (*CreateResp, error)
	Add(context.Context, *AddReq) (*AddResp, error)
	Modify(context.Context, *ModifyReq) (*ModifyResp, error)
	Index(ctx context.Context, req *IndexReq) (*IndexResp, error)
	Unique(ctx context.Context, req *UniqueReq) (*UniqueResp, error)
	DropIndex(ctx context.Context, req *DropIndexReq) (*DropIndexResp, error)
}

func NewDDL

func NewDDL(ctx context.Context, opts ...Option) DDLService

type DropIndexReq

type DropIndexReq struct {
	ExecuteReq
	IndexName string
}

type DropIndexResp

type DropIndexResp struct {
	IndexName string
}

type ExecuteReq

type ExecuteReq struct {
	Table  string
	Fields []*Field
}

type ExecuteResp

type ExecuteResp struct {
	Table string
}

type Field

type Field = structor.Field

type IndexReq

type IndexReq struct {
	ExecuteReq
	IndexName string
}

type IndexResp

type IndexResp struct {
	IndexName string
}

type ModifyReq

type ModifyReq = ExecuteReq

type ModifyResp

type ModifyResp = ExecuteResp

type Option

type Option func(*ddl)

func WithDB

func WithDB(db dorm.Dept) Option

type UniqueReq

type UniqueReq struct {
	ExecuteReq
	UniqueName string
}

type UniqueResp

type UniqueResp struct {
	UniqueName string
}

Jump to

Keyboard shortcuts

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