Coder Social home page Coder Social logo

ssavva05 / mysqldumptoh2-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from katwekibs/mysqldumptoh2

0.0 1.0 0.0 44 KB

A tool that transforms mysqldump sql to H2 database sql. This tool Convert MySQL script to H2 This tool can be used in both gralphical environment and within code as an api importing MysqlToH2.jar as a dependancy.

Java 100.00%

mysqldumptoh2-1's Introduction

MysqlDumpToH2

A tool that transforms mysqldump sql to H2 database sql. This tool Convert MySQL script to H2 This tool can be used in both gralphical environment and within code as an api importing MysqlToH2.jar as a dependancy.

  1. Download the .jar file from the dist folder on this repo,
  2. Make sure you have JRE 7 and above installed on your machine.
  3. Double click on the MysqlToH2.jar file to open GUI.
  4. Select your mysqldump file
  5. Provide the destination folder for the H2 database SQL script.
  6. Click let's go.
  7. The tool will display "processing.." once this label hides, it means processing is done.
  8. Check the destination folder for a file called h2.sql.

cheers.

Using this tool within your code. Add the MysqlToH2.jar jar file to your project dependancies.

MysqlToH2 api = new MysqlToH2();
String contents = new String(Files.readAllBytes(Paths.get(mysqlDumpTextField.getText())));
contents = api.removeComments(contents);
contents = api.removeCharSet(contents);
String[] split = contents.split(";");
String res = api.processAllQuery(split);
res += "\n";
res += api.processCommands();

mysqldumptoh2-1's People

Contributors

katwekibs avatar

Watchers

James Cloos 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.