Open aeberhart opened 1 year ago
implementation notes
@Override
public Map<String, Object> connectAndCollectMetadata() throws Exception {
Map<String, Object> res =
(Map<String, Object>) call("crud/config/dj-database/" + e("dj/" + this.database), null);
res = (Map<String, Object>) res.get("tables");
for (Entry<String, Object> entry : res.entrySet()) {
Map<String, Object> table = (Map<String, Object>) entry.getValue();
table.put("parent", ID);
table.put("ID", ID + "/" + e(entry.getKey()));
// TODO: change props also
}
System.out.println(res);
return res;
}
if possible, integrate this into the RemoteDatabase driver
We have three ways of interacting with remote systems:
Setting a relationship that points to another system
Using a RemoteDatabase
Using another DJ as a Database