Documentation ¶
Index ¶
Constants ¶
View Source
const TableName = "_migration"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DBInterfaces ¶
func NewDbInterfaces ¶
func NewDbInterfaces(tx *pgx.Tx, schema string) (result *DBInterfaces, err error)
type File ¶
type Filesystem ¶
func NewFilesystem ¶
func NewFilesystem(pa string) (fs *Filesystem, err error)
func (*Filesystem) PrettyJSON ¶
func (f *Filesystem) PrettyJSON() string
type InitDBResult ¶
type InitDBResult struct { Migrations MigrationResult Interfaces InterfacesResult }
type InterfacesMap ¶
type InterfacesMap MigrationMap
type InterfacesResult ¶
type InterfacesResult struct {
Files []string
}
func CreateInterfaces ¶
func CreateInterfaces(tx *pgx.Tx, im InterfacesMap, templateData interface{}) (result InterfacesResult, err error)
type MigrationError ¶
func (*MigrationError) Error ¶
func (m *MigrationError) Error() string
type MigrationMap ¶
type MigrationResult ¶
func Migrate ¶
func Migrate(tx *pgx.Tx, mm MigrationMap, templateData interface{}) (result MigrationResult, err error)
type SyncMap ¶
type SyncMap struct { Migration MigrationMap Interfaces InterfacesMap TemplateData interface{} }
Click to show internal directories.
Click to hide internal directories.