Giter Site home page Giter Site logo

chris0016 / database-automation-tool Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 46 KB

Program to insert data into database imported data. Meant to quickly populate a table with resuable columns across a many tables.

Java 100.00%
database java sql

database-automation-tool's Introduction

Database Automation Tool

Essentially this program is a tool to insert random data into tables. An alternative to using this program is to simply download a csv file fo data and import it into the table.

So why use this tool?

Most often, the data across different tables is the same such as name, email, phone numbers, or money and so on. This program takes the approach treating those column values as reusable entities that can be shared and reused across different tables. What this implies is that we can build a variety of tables with different values using discrete units. Furthermore, you won't need to download massive csv files for every table.

How to use?

Download or create a single column csv file. This csv file will then be transformed into an object-like entity in the program that can be used to put it in several tables. For instance, downloading a list of names will then be used to create a table that is a combination of other entities like phone numbers and emails.



Instructions to use:

  • Update Configs Files to your database.

  • Change the files(filename and content or add files) in the resources accordingly to the column values you'd like.

  • Load the files using the bLoader utility.

  • Create a 2d array containing all the columns in order.

Order is important for array that holds all the strings. As they will be loaded in order.

  • Update the current highest primary key value(pkValue) count. This number specifies the next aviable value of the primary key in your table. This number has to be updated manually.


Version 1.1.0:

Currently there are some issues or things that can be done better in the program. For instance: -Some column values cannot be duplicate so selecting at random will inevitably cause a collision. Once that collision occurs the program comes to a halt.

To solve this, add error handling if mySQL gives this specific type of error and then run again. Reduce the pkValue in the function when the error occurs.


-Instead of having to manually update the current pkValue in the primary function, automatically retrieve the highest  pkValue on a given table. -> Maybe a custom script? 

-Some pk values are not numbers(or even increment sequentially). Hence, having the 
option to treat the pkValues columns as an entity of the users choice is also a good idea. 


Version 2.0:

-GUI interface might make the program easier? Web or native app? 

database-automation-tool's People

Watchers

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