Versions in this module Expand all Collapse all v1 v1.0.1 Jun 29, 2018 v1.0.0 Jun 27, 2018 Changes in this version + type Cockroach struct + Schema SchemaQuery + func NewCockroach(url string, name string) *Cockroach + func (p *Cockroach) AddColumn(t fizz.Table) (string, error) + func (p *Cockroach) AddForeignKey(t fizz.Table) (string, error) + func (p *Cockroach) AddIndex(t fizz.Table) (string, error) + func (p *Cockroach) ChangeColumn(t fizz.Table) (string, error) + func (p *Cockroach) CreateTable(t fizz.Table) (string, error) + func (p *Cockroach) DropColumn(t fizz.Table) (string, error) + func (p *Cockroach) DropForeignKey(t fizz.Table) (string, error) + func (p *Cockroach) DropIndex(t fizz.Table) (string, error) + func (p *Cockroach) DropTable(t fizz.Table) (string, error) + func (p *Cockroach) RenameColumn(t fizz.Table) (string, error) + func (p *Cockroach) RenameIndex(t fizz.Table) (string, error) + func (p *Cockroach) RenameTable(t []fizz.Table) (string, error) + type MySQL struct + Schema SchemaQuery + func NewMySQL(url, name string) *MySQL + func (p *MySQL) AddColumn(t fizz.Table) (string, error) + func (p *MySQL) AddForeignKey(t fizz.Table) (string, error) + func (p *MySQL) AddIndex(t fizz.Table) (string, error) + func (p *MySQL) ChangeColumn(t fizz.Table) (string, error) + func (p *MySQL) CreateTable(t fizz.Table) (string, error) + func (p *MySQL) DropColumn(t fizz.Table) (string, error) + func (p *MySQL) DropForeignKey(t fizz.Table) (string, error) + func (p *MySQL) DropIndex(t fizz.Table) (string, error) + func (p *MySQL) DropTable(t fizz.Table) (string, error) + func (p *MySQL) RenameColumn(t fizz.Table) (string, error) + func (p *MySQL) RenameIndex(t fizz.Table) (string, error) + func (p *MySQL) RenameTable(t []fizz.Table) (string, error) + type Postgres struct + func NewPostgres() *Postgres + func (p *Postgres) AddColumn(t fizz.Table) (string, error) + func (p *Postgres) AddForeignKey(t fizz.Table) (string, error) + func (p *Postgres) AddIndex(t fizz.Table) (string, error) + func (p *Postgres) ChangeColumn(t fizz.Table) (string, error) + func (p *Postgres) CreateTable(t fizz.Table) (string, error) + func (p *Postgres) DropColumn(t fizz.Table) (string, error) + func (p *Postgres) DropForeignKey(t fizz.Table) (string, error) + func (p *Postgres) DropIndex(t fizz.Table) (string, error) + func (p *Postgres) DropTable(t fizz.Table) (string, error) + func (p *Postgres) RenameColumn(t fizz.Table) (string, error) + func (p *Postgres) RenameIndex(t fizz.Table) (string, error) + func (p *Postgres) RenameTable(t []fizz.Table) (string, error) + type SQLite struct + Schema SchemaQuery + func NewSQLite(url string) *SQLite + func (p *SQLite) AddColumn(t fizz.Table) (string, error) + func (p *SQLite) AddForeignKey(t fizz.Table) (string, error) + func (p *SQLite) AddIndex(t fizz.Table) (string, error) + func (p *SQLite) ChangeColumn(t fizz.Table) (string, error) + func (p *SQLite) CreateTable(t fizz.Table) (string, error) + func (p *SQLite) DropColumn(t fizz.Table) (string, error) + func (p *SQLite) DropForeignKey(t fizz.Table) (string, error) + func (p *SQLite) DropIndex(t fizz.Table) (string, error) + func (p *SQLite) DropTable(t fizz.Table) (string, error) + func (p *SQLite) RenameColumn(t fizz.Table) (string, error) + func (p *SQLite) RenameIndex(t fizz.Table) (string, error) + func (p *SQLite) RenameTable(t []fizz.Table) (string, error) + type Schema struct + Builder SchemaQuery + Name string + URL string + func CreateSchema(name string, url string, schema map[string]*fizz.Table) Schema + func (s *Schema) Build() error + func (s *Schema) ColumnInfo(table string, column string) (*fizz.Column, error) + func (s *Schema) Delete(table string) + func (s *Schema) DeleteColumn(table string, column string) + func (s *Schema) IndexInfo(table string, idx string) (*fizz.Index, error) + func (s *Schema) ReplaceColumn(table string, oldColumn string, newColumn fizz.Column) error + func (s *Schema) ReplaceSchema(newSchema map[string]*fizz.Table) + func (s *Schema) SetTable(table *fizz.Table) + func (s *Schema) TableInfo(table string) (*fizz.Table, error) + type SchemaQuery interface + Build func() error + ColumnInfo func(table string, column string) (*fizz.Column, error) + Delete func(string) + DeleteColumn func(string, string) + IndexInfo func(table string, idx string) (*fizz.Index, error) + ReplaceColumn func(table string, oldColumn string, newColumn fizz.Column) error + ReplaceSchema func(map[string]*fizz.Table) + SetTable func(*fizz.Table) + TableInfo func(string) (*fizz.Table, error)