files

package
v0.0.0-...-5c26bad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CqlFileRepo

type CqlFileRepo struct {
	Path string
}

CqlFileRepo is an implementation of a file repository

func (*CqlFileRepo) FindAll

func (repo *CqlFileRepo) FindAll() ([]MigrationFile, error)

FindAll retrieves all the valid migration scripts

type IFileRepo

type IFileRepo interface {
	FindAll() ([]MigrationFile, error)
}

IFileRepo is a repository of migre scripts

type MigrationFile

type MigrationFile struct {
	Version     int //The Version Id
	Description string
	Up          []string
	Down        []string
}

MigrationFile represents the content of the igration script

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL