Merge pull request #182 from BigBotNetwork/master

d
This commit is contained in:
Skidder 2019-12-09 07:48:29 +01:00 committed by GitHub
commit 5323cb9973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,11 +54,11 @@ public class Rethink {
return new JSONArray();
}
private Object get(String table, String where, String value, String column) {
public Object get(String table, String where, String value, String column) {
return this.getAsArray(table, where, value).getJSONObject(0).get(column);
}
private String update(String table, String wherevalue, String what, String whatvalue) {
public String update(String table, String wherevalue, String what, String whatvalue) {
String out = "";
try {
Cursor cursor = r.table(table).get(wherevalue).update(r.hashMap(what, whatvalue)).run(conn);
@ -67,7 +67,7 @@ public class Rethink {
return out;
}
private String insert(String table, Object object) {
public String insert(String table, Object object) {
String out = "";
try {
Cursor cursor = r.table(table).insert(object).run(conn);