ddl

package
v0.0.0-...-28ac8a9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlterQuery

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

func (*AlterQuery) Table

func (a *AlterQuery) Table(name string) alter.TableService

type AlterService

type AlterService interface {
	Table(name string) alter.TableService
}

func NewAlterQuery

func NewAlterQuery(builder *Builder) AlterService

type Builder

type Builder struct {
	DB *sql.DB
}

func (*Builder) Alter

func (b *Builder) Alter() AlterService

func (*Builder) Create

func (b *Builder) Create() CreateService

func (*Builder) Drop

func (b *Builder) Drop() DropService

func (*Builder) Truncate

func (b *Builder) Truncate() TruncateService

type CreateQuery

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

func (*CreateQuery) Database

func (c *CreateQuery) Database(name string) create.DatabaseService

func (*CreateQuery) Table

func (c *CreateQuery) Table(name string) create.TableService

type CreateService

type CreateService interface {
	Table(name string) create.TableService
	Database(name string) create.DatabaseService
}

func NewCreateQuery

func NewCreateQuery(b *Builder) CreateService

type DropQuery

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

func (*DropQuery) Database

func (d *DropQuery) Database(name string) drop.DatabaseService

func (*DropQuery) Table

func (d *DropQuery) Table(name []string) drop.TableService

type DropService

type DropService interface {
	Table(name []string) drop.TableService
	Database(name string) drop.DatabaseService
}

func NewDropQuery

func NewDropQuery(b *Builder) DropService

type Service

type Service interface {
	Create() CreateService
	Drop() DropService
	Alter() AlterService
	Truncate() TruncateService
}

func NewBuilder

func NewBuilder(db *sql.DB) Service

type TruncateQuery

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

func (TruncateQuery) Table

func (t TruncateQuery) Table(name string) truncate.Service

type TruncateService

type TruncateService interface {
	Table(name string) truncate.Service
}

func NewTruncateQuery

func NewTruncateQuery(b *Builder) TruncateService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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