Skip to content

apunkto/DataBata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataBata

Build Status

DataBata is a tool for incremental database update based on HSQLDB SqlTool created for all types of workers: DBA, developers and QA. Currently Oracle and Postgres databases are supported. We plan to support all general RDBMSes.

For monitoring purposes there is DataBata Web Console.

logs history objects

What do you need to run DataBata?

Installation

Spring Framework: simply create following bean in your spring configuration

<bean id="propagator" class="eu.databata.engine.spring.PropagatorSpringInstance" init-method="init">
    <property name="jdbcTemplate" ref="jdbcTemplate" />
    <property name="transactionManager" ref="transactionManager" />
    <property name="changes" value="WEB-INF/db/changes" />
    <property name="packageDir" value="WEB-INF/db/packages" />
    <property name="viewDir" value="WEB-INF/db/views" />
    <property name="triggerDir" value="WEB-INF/db/triggers" />
    <property name="useTestData" value="false" />
    <property name="disableDbPropagation" value="false" />
    <property name="enableAutomaticTransformation" value="true" />
    <property name="moduleName" value="DATABATA_TEST" />
</bean>

NB! You need to reference jdbcTemplate and transactionManager beans in your configurations. And sql-files location is inside WEB-INF directory of your web application.

To run DataBata you need following dependencies in your classpath:

  • gradle dependencies
  runtime 'commons-lang:commons-lang:2.4'
  runtime 'log4j:log4j:1.2.+'
  runtime 'org.springframework:org.springframework.jdbc:3.1.3.RELEASE'

  runtime 'com.oracle:ojdbc6:11.2.0.3'
  runtime 'org.hsqldb:hsqldb:2.2.9'
  runtime 'commons-logging:commons-logging:1.1.3'

Run examples in project

TODO instructions

Roadmap