Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct {
Queries []Query
}
Migration defines a structure for holding metadata and queries to be ran against a database
type Migrations ¶
type Migrations struct {
IsSilent bool
}
Migrations is a config object to help pass in settings
func (Migrations) Create ¶
func (m Migrations) Create(outputDir string, name string)
Create creates a new migration with the provided name at the given directory.
func (Migrations) FindInPath ¶
func (m Migrations) FindInPath(dir string, isUp bool) Migration
FindInPath finds migration files in a specific directory. `dir` param is the directory you want to search.
*isUp is a bool representing if you're searching for up or down queries.
Click to show internal directories.
Click to hide internal directories.