translators

package
v3.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct {
	Schema Schema
}

func NewMySQL

func NewMySQL(url, name string) *MySQL

func (*MySQL) AddColumn

func (p *MySQL) AddColumn(t fizz.Table) (string, error)

func (*MySQL) AddIndex

func (p *MySQL) AddIndex(t fizz.Table) (string, error)

func (*MySQL) CreateTable

func (p *MySQL) CreateTable(t fizz.Table) (string, error)

func (*MySQL) DropColumn

func (p *MySQL) DropColumn(t fizz.Table) (string, error)

func (*MySQL) DropIndex

func (p *MySQL) DropIndex(t fizz.Table) (string, error)

func (*MySQL) DropTable

func (p *MySQL) DropTable(t fizz.Table) (string, error)

func (*MySQL) RenameColumn

func (p *MySQL) RenameColumn(t fizz.Table) (string, error)

func (*MySQL) RenameIndex

func (p *MySQL) RenameIndex(t fizz.Table) (string, error)

func (*MySQL) RenameTable

func (p *MySQL) RenameTable(t []fizz.Table) (string, error)

type Postgres

type Postgres struct {
}

func NewPostgres

func NewPostgres() *Postgres

func (*Postgres) AddColumn

func (p *Postgres) AddColumn(t fizz.Table) (string, error)

func (*Postgres) AddIndex

func (p *Postgres) AddIndex(t fizz.Table) (string, error)

func (*Postgres) CreateTable

func (p *Postgres) CreateTable(t fizz.Table) (string, error)

func (*Postgres) DropColumn

func (p *Postgres) DropColumn(t fizz.Table) (string, error)

func (*Postgres) DropIndex

func (p *Postgres) DropIndex(t fizz.Table) (string, error)

func (*Postgres) DropTable

func (p *Postgres) DropTable(t fizz.Table) (string, error)

func (*Postgres) RenameColumn

func (p *Postgres) RenameColumn(t fizz.Table) (string, error)

func (*Postgres) RenameIndex

func (p *Postgres) RenameIndex(t fizz.Table) (string, error)

func (*Postgres) RenameTable

func (p *Postgres) RenameTable(t []fizz.Table) (string, error)

type SQLite

type SQLite struct {
	Schema Schema
}

func NewSQLite

func NewSQLite(url string) *SQLite

func (*SQLite) AddColumn

func (p *SQLite) AddColumn(t fizz.Table) (string, error)

func (*SQLite) AddIndex

func (p *SQLite) AddIndex(t fizz.Table) (string, error)

func (*SQLite) CreateTable

func (p *SQLite) CreateTable(t fizz.Table) (string, error)

func (*SQLite) DropColumn

func (p *SQLite) DropColumn(t fizz.Table) (string, error)

func (*SQLite) DropIndex

func (p *SQLite) DropIndex(t fizz.Table) (string, error)

func (*SQLite) DropTable

func (p *SQLite) DropTable(t fizz.Table) (string, error)

func (*SQLite) RenameColumn

func (p *SQLite) RenameColumn(t fizz.Table) (string, error)

func (*SQLite) RenameIndex

func (p *SQLite) RenameIndex(t fizz.Table) (string, error)

func (*SQLite) RenameTable

func (p *SQLite) RenameTable(t []fizz.Table) (string, error)

type Schema

type Schema interface {
	TableInfo(string) (*fizz.Table, error)
	Delete(string)
}

Jump to

Keyboard shortcuts

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