Coder Social home page Coder Social logo

filldb's Introduction

GitHub Release Maven Central MIT Licence

A tool for filling a Relational database

I looked around and couldn't find a decent database filling tool. So I wrote one.

This tool only works with MariaDB. Extending it to support other databases should not be hard, but I have no need at the moment. Anyone that would like to implement it can help.

Meant to be used from the command line.

Status

Only one real problem left: Dealing with primary keys that span multiple columns (may or may not fail with the current code)

There is a command line switch that allows you to ignore errors so that the insert won't fail completely.

Current features

  • Schema agnostic, point it to a DB and it will figure things out from there
  • Supports text, varchar, bigint, int and bit columns
  • Can generate test data of various field types: street, city, state, country, email, name, first/middle/last name, hex, phone number, timestamp,
  • Can download various lorum ipsums from generators online
  • Can download various cartoons from webcomics

Future features

There are some listed in src/docs/ideas.md. More ideas are welcome. As are bugs, comments and anything else really.

Installation

  1. Check out the code git clone https://github.com/codemonstur/filldb.git
  2. Run make install
  3. You can now run the code with java -jar target/filldb.jar
  4. [Optional] Copy the code to /usr/local/bin
  5. [Optional] Create an alias alias filldb='java -jar /usr/local/bin/filldb.jar'

The code requires Java 11.

filldb's People

Contributors

codemonstur avatar dustpuppyngti avatar dependabot[bot] 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.