Skip to content

Devoter/couch-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

couch-migrator

Couch migrator is a library that provides migration management operations.

License: MIT

Contents

  1. Installation
  2. Usage
    1. Migrations package
    2. Global slice variable example
  3. License

Installation

go get -v github.com/Devoter/couch-migrator

Usage

The following instructions are only recommendations, of course, you can use the library as like as you wish.

Migrations package

To use the library you should create migrations functions. It is intuitive to declare migrations package in your project. All your migrations should be placed in one slice of type []migration.Migration.

Global slice variable example

There is a simple way to declare the migrations slice:

// migrations/migrations.go
package migrations

import "github.com/Devoter/couch-migrator/migration"

// Migrations is a list of all available migrations.
var Migrations = []migration.Migration{}

License

MIT

About

A migration library for kivik-based couchdb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages