Search code examples
gomartini

What is being used for migrations with martini?


I'm trying to learn martini, coming from Rails. What's being used for database migrations in the martini world?


Solution

  • There is no such thing in martini. It is just a helper for writing web services. If you want database migrations, or a database at all, use third-party packages.

    An example tool stack would be:

    • goose for creating migrations
    • gorp for a database object layer

    This or a completely different setup, e.g. using Go's standard database package, can be used with martini.