MAPI

Bukkit Plugins
1,117 Downloads Last Updated: Jan 21, 2014 Game Version: CB 1.6.4-R2.0

MySQL API - Logo 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

List of MAPI 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!

Comments

Posts Quoted: