What is being used for migrations with martini?

111 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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.