MCPcopy Create free account
hub / github.com/MariaDB/server / DocAdd

Method DocAdd

storage/connect/Mongo2Interface.java:428–441  ·  view source on GitHub ↗
(Object bdc, String key, Object val, int json)

Source from the content-addressed store, hash-verified

426 } // end of MakeDocument
427
428 public boolean DocAdd(Object bdc, String key, Object val, int json) {
429 try {
430 if (json != 0 && val instanceof String)
431 ((BasicDBObject) bdc).append(key, JSON.parse((String) val));
432 else
433 ((BasicDBObject) bdc).append(key, val);
434
435 } catch (MongoException me) {
436 SetErrmsg(me);
437 return true;
438 } // end try/catch
439
440 return false;
441 } // end of DocAdd
442
443 public Object MakeArray() {
444 return new BasicDBList();

Callers 2

mainMethod · 0.45
mainMethod · 0.45

Calls 3

SetErrmsgMethod · 0.95
appendMethod · 0.45
parseMethod · 0.45

Tested by 2

mainMethod · 0.36
mainMethod · 0.36