-
Notifications
You must be signed in to change notification settings - Fork 110
Database
Steven edited this page Apr 19, 2016
·
3 revisions
To set up and enable SQL Database saving, open up the config.yml and find the "Saving" section. Set "sql-database" to true, and fill out the "sql-details" with your database's information.
For those planning on reading data from the database for a website or similar function, the schema used by SkillAPI is a lazy schema with 3 columns:
Column Name | Column Type | Description |
---|---|---|
Name | VARCHAR(64) | The player's UUID |
id | INT KEY AUTO_INCREMENT | Increment index of the entry |
data | TEXT | The YAML data for the player |
If you need to parse the YAML data for a website, you could use the JavaScript YAML parser made for the Dynamic Editor. The source for that can be found here: