Code Monkey home page Code Monkey logo

db_tool's Introduction

Version 1.0

* Features
- Database dump -> converts *.db3 to *.sql // the dump file can be found in './dump_db1.sql' and './dump_db2.sql'
- Lists all the database tables
- Lists all the database table schemas
- Lists all the database table triggers
- Lists all the database table indices
- Lists all the tables which are in one database but not in the other one 
- Lists all the schema differences between the common tables 
- Lists all the trigger differences between the common tables

* How to run
1- go to the destination folder on your pc
2- git clone -b master [email protected]:kaco-sw/test-framework/common/db_tool.git
3- cd db_tool/
4- mkdir build
5- cd build
6- cmake ..
7- make
8- ./db_tool [PATH_TO_DB1] [PATH_TO_DB2] > out.sql (to save the logs in 'out.sql' in the current directory)

* Sample 
user-id@pc-id: ./db_tool ../db/config-app.db3 ../db/config-psd2.db3 > test.sql

db_tool's People

Watchers

Ehsan Azimi 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.