plan

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddColumn

type AddColumn struct {
	*db.Column
}

type AlterColumn

type AlterColumn struct {
	*db.Column
	SetDataType bool
	SetNotNull  bool
	DropNotNull bool
	SetDefault  bool
	DropDefault bool
}

type AlterTable

type AlterTable struct {
	*db.Table
	AddColumns    []AddColumn
	DropColumns   []DropColumn
	AlterColumns  []AlterColumn
	CreateIndexes []CreateIndex
	DropIndexes   []DropIndex
}

type CreateExtension

type CreateExtension struct {
	*db.Extension
}

type CreateIndex

type CreateIndex struct {
	*db.Index
}

type CreateSchema

type CreateSchema struct {
	*db.Schema
	CreateTables []CreateTable
}

type CreateTable

type CreateTable struct {
	*db.Table
	AddColumns    []AddColumn
	CreateIndexes []CreateIndex
}

type DropColumn

type DropColumn struct {
	*db.Column
}

type DropExtension

type DropExtension struct {
	*db.Extension
}

type DropIndex

type DropIndex struct {
	*db.Index
}

type DropTable

type DropTable struct {
	*db.Table
}

type UpdateDatabase

type UpdateDatabase struct {
	CreateExtensions []CreateExtension
	CreateSchemas    []CreateSchema
	UpdateSchemas    []UpdateSchema
}

func Update

func Update(database ab.DatabaseMatch) UpdateDatabase

type UpdateSchema

type UpdateSchema struct {
	*db.Schema
	CreateTables []CreateTable
	AlterTables  []AlterTable
	DropTables   []DropTable
}

Jump to

Keyboard shortcuts

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