Skip to content

Vasync/LSDatabase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💾LSDatabase

featureapproval
Easier database for PocketMine-MP.

Plugins use it

❓What is it?

  • Better database.
  • Exchanging data between files will be easier.
  • Exchanges are no longer interrupted
  • Better SQL support

✍️Using:

How to create a database:

use ls369\LSDatabase\SQLite;

//...

$db = new SQLite($this->plugin->getDataFolder() . 'players.db', SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE);

$db->createTable("user", ["kienmc","pvmn"]);

// set the names in the user table
$db->set("user", "kienmc", "dutube");


// add column to user table
$db->add('user', 'money', 'INTEGER');

// get data
$users = $db->get('user', ['kienmc', 'pvmn', 'money']);
// output: "dutube", "lacdit", "0";

About

Easier database for PocketMine-MP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages