🛠️ Code cleanup & added many new features #1
@ -61,6 +61,16 @@ public abstract class SQLStorageMedium extends SQLTable {
|
||||
update().where("keyName", key).delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of a key
|
||||
*
|
||||
* @param key The key of the value you want to get
|
||||
* @return the value you want to get
|
||||
*/
|
||||
public String get(String key) {
|
||||
return select().where("keyName", key).getResult().getString("value");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all entries from the storage medium
|
||||
*
|
||||
|
Reference in New Issue
Block a user