Home›Java›Mods›ConfigSQL
ConfigSQL
ModsJava

ConfigSQL

Java mod listed for Minecraft 1.7. Download on the author's site.

⬇ Download on Spigot

[ConfigSQL]

Simple utility plugin to create SQLite database(s) from YAML

This plugin is *not* for:

- devs who know SQL
- devs who do not know YAML


Okay, to be fair you need to know *some* SQL, not much though -- just creation statements and data type declarations which you can learn really quickly and for that, Google will be your best friend.​

****************************************************************
DEPENDS ON SQLiteLib:
https://www.spigotmc.org/resources/sqlitelib.46801/
(an awesome plugin created by Pablo67340)
****************************************************************


Setup:

NOTE: Make sure you install SQLiteLib to your server before you do anything else

1.) install plugin as usual (.jar -> plugins folder)
2.) run server
3.) stop server
4.) open config.yml -> change initialize to true
5.) open databaseConstructor.yml -> format as you like
6.) run server 2nd time

7.) databases are initialized as SQLiteLib/<databaseName>.db


< example databaseConstructor.yml >​
Code (YAML):
databaseNames : ['database1' ]
databases
:
  database1
:
    tableNames
: ['table1', 'table2', 'table3' ]
    tables
:
      table1
:
        creationStatement
: 'CREATE TABLE IF NOT EXISTS'
        columnNames
: ['column1','column2','column3' ]
        columns
:
          column1
:
            creationStatement
: 'INTEGER NOT NULL PRIMARY KEY'
          column2
:
            creationStatement
: 'TEXT'
          column3
:
            creationStatement
: 'BLOB'
      table2
:
        creationStatement
: 'CREATE TABLE IF NOT EXISTS'
        columnNames
: ['column1','column2','column3' ]
        columns
:
          column1
:
            creationStatement
: 'INTEGER NOT NULL PRIMARY KEY'
          column2
:
            creationStatement
: 'TEXT'
          column3
:
            creationStatement
: 'BLOB'
      table3
:
        creationStatement
: 'CREATE TABLE IF NOT EXISTS'
        columnNames
: ['column1','column2','column3' ]
        columns
:
          column1
:
            creationStatement
: 'INTEGER NOT NULL PRIMARY KEY'
          column2
:
            creationStatement
: 'TEXT'
          column3
:
            creationStatement
: 'BLOB'
In this example, there's one database with three tables that each hold three columns but ConfigSQL doesn't limit the number of databases or tables or columns you can create from databaseConstructor.yml.

Create as many databases and tables and columns you want; let them store whatever information you want them to -- just make sure you update the relevant fields ( e.g. if you changed 'database1' to 'myDatabase' it should be reflected in both the name of the "databases.database1" key, as well as the list stored under "databaseNames". The same applies to tables and columns.
​
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

ConfigSQL is a free Minecraft Java mod. Compatible with Minecraft 1.7. Downloaded 89 times (via Spigot). Download it and open it directly in the game.

Explore more