Documentation ¶
Index ¶
- func Clear(url string, migrations_dir string, migrations_table string) error
- func Create() string
- func Drop() string
- func Dump(url string, schema_file string) error
- func Load(url string, schema_file string) error
- func Migrate(url string, migrations_dir string, migrations_table string) error
- func New(migrations_dir string, name string) error
- func Reset(url string, migrations_dir string, migrations_table string) error
- func Rollback(url string, migrations_table string) error
- func Status(url string, migrations_dir string, migrations_table string) error
- type DM8
- func (p *DM8) All() string
- func (p *DM8) ByVersion() string
- func (p *DM8) CreateSchemaMigrationsTable() string
- func (p *DM8) Down() string
- func (p *DM8) DropSchemaMigrationsTable() string
- func (p *DM8) HibernateSequence() (string, string)
- func (p *DM8) Insert() string
- func (p *DM8) Latest() string
- func (p *DM8) Up() string
- func (p *DM8) Version() string
- type Database
- type Migration
- type MySql
- func (p *MySql) All() string
- func (p *MySql) ByVersion() string
- func (p *MySql) CreateSchemaMigrationsTable() string
- func (p *MySql) Down() string
- func (p *MySql) DropSchemaMigrationsTable() string
- func (p *MySql) HibernateSequence() (string, string)
- func (p *MySql) Insert() string
- func (p *MySql) Latest() string
- func (p *MySql) Up() string
- func (p *MySql) Version() string
- type Oracle
- func (p *Oracle) All() string
- func (p *Oracle) ByVersion() string
- func (p *Oracle) CreateSchemaMigrationsTable() string
- func (p *Oracle) Down() string
- func (p *Oracle) DropSchemaMigrationsTable() string
- func (p *Oracle) HibernateSequence() (string, string)
- func (p *Oracle) Insert() string
- func (p *Oracle) Latest() string
- func (p *Oracle) Up() string
- func (p *Oracle) Version() string
- type PostgreSql
- func (p *PostgreSql) All() string
- func (p *PostgreSql) ByVersion() string
- func (p *PostgreSql) CreateSchemaMigrationsTable() string
- func (p *PostgreSql) Down() string
- func (p *PostgreSql) DropSchemaMigrationsTable() string
- func (p *PostgreSql) HibernateSequence() (string, string)
- func (p *PostgreSql) Insert() string
- func (p *PostgreSql) Latest() string
- func (p *PostgreSql) Up() string
- func (p *PostgreSql) Version() string
- type SqlServer
- func (p *SqlServer) All() string
- func (p *SqlServer) ByVersion() string
- func (p *SqlServer) CreateSchemaMigrationsTable() string
- func (p *SqlServer) Down() string
- func (p *SqlServer) DropSchemaMigrationsTable() string
- func (p *SqlServer) HibernateSequence() (string, string)
- func (p *SqlServer) Insert() string
- func (p *SqlServer) Latest() string
- func (p *SqlServer) Up() string
- func (p *SqlServer) Version() string
- type Sqlite3
- func (p *Sqlite3) All() string
- func (p *Sqlite3) ByVersion() string
- func (p *Sqlite3) CreateSchemaMigrationsTable() string
- func (p *Sqlite3) Down() string
- func (p *Sqlite3) DropSchemaMigrationsTable() string
- func (p *Sqlite3) HibernateSequence() (string, string)
- func (p *Sqlite3) Insert() string
- func (p *Sqlite3) Latest() string
- func (p *Sqlite3) Open(dsn string) (*sql.DB, error)
- func (p *Sqlite3) Up() string
- func (p *Sqlite3) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DM8 ¶
type DM8 struct { }
func (*DM8) CreateSchemaMigrationsTable ¶
func (*DM8) DropSchemaMigrationsTable ¶
func (*DM8) HibernateSequence ¶
type Database ¶
type MySql ¶
type MySql struct { }
func (*MySql) CreateSchemaMigrationsTable ¶
func (*MySql) DropSchemaMigrationsTable ¶
func (*MySql) HibernateSequence ¶
type Oracle ¶
type Oracle struct { }
func (*Oracle) CreateSchemaMigrationsTable ¶
func (*Oracle) DropSchemaMigrationsTable ¶
func (*Oracle) HibernateSequence ¶
type PostgreSql ¶
type PostgreSql struct { }
func (*PostgreSql) All ¶
func (p *PostgreSql) All() string
func (*PostgreSql) ByVersion ¶
func (p *PostgreSql) ByVersion() string
func (*PostgreSql) CreateSchemaMigrationsTable ¶
func (p *PostgreSql) CreateSchemaMigrationsTable() string
func (*PostgreSql) Down ¶
func (p *PostgreSql) Down() string
func (*PostgreSql) DropSchemaMigrationsTable ¶
func (p *PostgreSql) DropSchemaMigrationsTable() string
func (*PostgreSql) HibernateSequence ¶
func (p *PostgreSql) HibernateSequence() (string, string)
func (*PostgreSql) Insert ¶
func (p *PostgreSql) Insert() string
func (*PostgreSql) Latest ¶
func (p *PostgreSql) Latest() string
func (*PostgreSql) Up ¶
func (p *PostgreSql) Up() string
func (*PostgreSql) Version ¶
func (p *PostgreSql) Version() string
type SqlServer ¶
type SqlServer struct { }
func (*SqlServer) CreateSchemaMigrationsTable ¶
func (*SqlServer) DropSchemaMigrationsTable ¶
func (*SqlServer) HibernateSequence ¶
type Sqlite3 ¶
type Sqlite3 struct { }
func (*Sqlite3) CreateSchemaMigrationsTable ¶
func (*Sqlite3) DropSchemaMigrationsTable ¶
func (*Sqlite3) HibernateSequence ¶
Click to show internal directories.
Click to hide internal directories.