Coder Social home page Coder Social logo

dbsync's Introduction

build status

What is DBSync?

DBSync is a Linux command-line utility allowing for easy database changes between application versions. It was originally built in-house for GoGreen's internal build platform but later realized a wider audience may also find this tool useful.

Usage

Integrating DBSync into a project takes just a few minutes. Start by downloading the latest release found here, inside the archive you will find a example folder, inside will be two files; copy these two files in to the directory of your project and edit dbs_config.json to match your database settings. Once finished you can now start adding your SQL statements in to the dbs_updates.json file.

DBSync is a bare-minimum executable, meaning there aren't any command-line arguments (yet). Run the command dbsync in any directory where there is a valid dbs_config.json & dbs_updates.json

Something not working quite right? You can enable verbose outputting by setting an environmental variable like so: export DBSYNC_DEBUG=true

Requirements

  • JDK/JRE 1.6 or upwards
  • Sufficient database user permissions (CREATE, SELECT, UPDATE, INSERT)

Install Instructions

Simply download the latest release and copy the bin/dbsync file from the downloaded archive in to your /usr/bin/ system folder.

After you've moved the file you will want to make it executable using: chmod +x /usr/bin/dbsync

That's pretty much it, see usage instructions.

Credits

  • Initial Design - David Hinchliffe & Jack Carlin
  • Programming - Jack Carlin

License

Copyright 2016 Jack Carlin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

dbsync's People

Contributors

jarrrk 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.