Just for testing
This commit is contained in:
parent
910289d938
commit
fc203e02f7
1 changed files with 3 additions and 3 deletions
|
|
@ -54,11 +54,11 @@ public class Rethink {
|
||||||
return new JSONArray();
|
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);
|
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 = "";
|
String out = "";
|
||||||
try {
|
try {
|
||||||
Cursor cursor = r.table(table).get(wherevalue).update(r.hashMap(what, whatvalue)).run(conn);
|
Cursor cursor = r.table(table).get(wherevalue).update(r.hashMap(what, whatvalue)).run(conn);
|
||||||
|
|
@ -67,7 +67,7 @@ public class Rethink {
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String insert(String table, Object object) {
|
public String insert(String table, Object object) {
|
||||||
String out = "";
|
String out = "";
|
||||||
try {
|
try {
|
||||||
Cursor cursor = r.table(table).insert(object).run(conn);
|
Cursor cursor = r.table(table).insert(object).run(conn);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue