MAPI
What is MAPI?
MAPI is a new API that allows developers who aren't familiar with MySQL to use databases with ease!
Like the logo? It was made by SzymonOwca!
Examples
Usage
Connect
MAPI.connect("localhost", "databaseName", "username", "password");
Disconnect
MAPI.disconnect();
Getting Values
MAPI.selectString("tableName", "criteria", "criteriaValue", "columnName");
MAPI.selectInt("tableName", "criteria", "criteriaValue", "columnName");
MAPI.selectBool("tableName", "criteria", "criteriaValue", "columnName");
Inserting Values
MAPI.insertString("tableName", "column array", "values array");
MAPI.insertInt("tableName", "column array", "values array");
MAPI.insertBool("tableName", "column array", "values array");
Deleting Values
MAPI.delete("tableName", "criteria", "criteriaValue");
Updating Values
MAPI.update("tableName", "criteria", "criteriaValue", "columnName", "columnValue");
Using MAPI
MAPI mapi; mapi = new MAPI();
Found a Bug?
Open a ticket so that the developer has more of a chance of responding!
-
View User Profile
-
Send Message
Posted May 15, 2015http://dev.bukkit.org/bukkit-plugins/sql-api/
Thats the new MAPI i think. its 1.7.9.
-
View User Profile
-
Send Message
Posted Aug 30, 2014Please update as this outdated api is breaking the latest FriendMe build.
-
View User Profile
-
Send Message
Posted Aug 6, 2014Why did not update the new version? 1.7.2-R0.3 I need, I hope authors to update.
-
View User Profile
-
Send Message
Posted Jul 20, 2014does this have a config file with it? trying to get it working with FriendMe.
-
View User Profile
-
Send Message
Posted Jul 3, 2014@CopyableCougar4
You should update it to 1.7.9 because it's old system cause some bad lag and just to be more flexible.
-
View User Profile
-
Send Message
Posted Jun 19, 2014@JaackMC Yeah TheChunkWorld all of the code in this is just MySQL code that I do to save developers and myself time and heartache.
-
View User Profile
-
Send Message
Posted Jun 17, 2014@JaackMC
Are you joking? Please tell me you're joking.
What has broken?
-
View User Profile
-
Send Message
Posted Jun 17, 2014An update for 1.7.9?
If you're going to create an API that you want plugin authors to build upon, then it has to be kept up to date.
-
View User Profile
-
Send Message
Posted Feb 8, 2014@99razvan99 The most recent version uses static methods.
-
View User Profile
-
Send Message
Posted Feb 4, 2014Btw, you should make the functions static so, you don't need:
MAPI mapi; mapi = new MAPI();
-
View User Profile
-
Send Message
Posted Feb 4, 2014Yeah, this is really worth using!
-
View User Profile
-
Send Message
Posted Feb 2, 2014I uploaded it a while ago, but I forgot to add a link:
Click
-
View User Profile
-
Send Message
Posted Jan 22, 2014Could this be uploaded to GitHub please ;3?
-
View User Profile
-
Send Message
Posted Dec 7, 2013To use the MAPI, do the following:
-
View User Profile
-
Send Message
Posted Dec 5, 2013Few questions, is this asynchronous? It's a good idea but I don't really understand how to use it correctly.
-
View User Profile
-
Send Message
Posted Dec 3, 2013I will attempt to introduce this into my Parkour plugin soon, I will keep you posted on the progress :)
-
View User Profile
-
Send Message
Posted Nov 29, 2013Just a note: When this does come up I may have to rewrite some syntax I dunno if I put the right chars for some stuff..
-
View User Profile
-
Send Message
Posted Nov 29, 2013Good! Its powerful
-
View User Profile
-
Send Message
Posted Nov 29, 2013very nice! i have always despised setting up MySQL in my plugins :P Thanks!
-
View User Profile
-
Send Message
Posted Nov 29, 2013Good idea!