Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn holds a connection to a MySQL database schema.
func (Conn) AddApplied ¶
AddApplied record that a migration was applied.
func (Conn) CreateTable ¶
CreateTable create the migration table using a MySQL-compatible syntax.
func (Conn) GetApplied ¶
GetApplied returns the list of already applied migrations.
func (Conn) HasTable ¶
HasTable check if the schema has the migration table needed for Rambler to operate on it.
func (Conn) RemoveApplied ¶
RemoveApplied record that a migration was reversed.
Click to show internal directories.
Click to hide internal directories.