Giter VIP home page Giter VIP logo

staccato's Introduction

Staccato

Staccato is an imperative database versioning tool written in Java.

Goals

  1. Self-contained. External dependencies are things that you should already have installed (e.g., a database of the same type that you are versioning).
  2. Provide a framework. Database migrations happen in stages, the tools should reflect those steps.
  3. Just versioning. There are a lot of good ORM-based migration tools out there. Staccato is designed to work with whatever you happen to be using for migration (including just SQL scripts) rather than requiring any specific tools that abstract from the database itself.

Compiling, Testing, and Installing Staccato

Building

Maven is currently the default building solution. Once you have maven installed, you can type the following from the command line to build the project:

mvn compile

Unit Testing

The built-in unit testing is done with TestNG. At this time, staccato is built to work with postgres, mysql, and hsqldb. In order to run the unit test suite successfully with mysql and postgres, you'll have to prepare both databases by executing the sql in the following files:

  • src/test/mysql-test-db.sql
  • src/test/postgres-test-db.sql

The HSQLDB usage is file-based with the files checked into version control, so there should not be any additional configuration required there. src/test/hsqldb-test-db.sql contains the necessary commands to recreate the databases, should it be desired.

Once you have your databases setup successfully, run the following command to execute the unit test suite:

mvn test

At this time the mysql tests are temporarily disabled until a more robust solution to testing configuration can be implemented.

There are also a small number of JUnit based tests that do not have any outside dependencies that can be run directly, but are not part of the automated suite at this point in time.

Installing a Jar

To create a jar and install it to your local maven repository, execute the following:

mvn clean install

staccato's People

Contributors

dclements avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.