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

Method DocAdd

storage/connect/Mongo3Interface.java:526–535  ·  view source on GitHub ↗
(Object bdc, String key, Object val, int json)

Source from the content-addressed store, hash-verified

524 } // end of MakeDocument
525
526 public boolean DocAdd(Object bdc, String key, Object val, int json) {
527 try {
528 ((BsonDocument) bdc).append(key, ObjToBson(val, json));
529 } catch (MongoException me) {
530 SetErrmsg(me);
531 return true;
532 } // end try/catch
533
534 return false;
535 } // end of DocAdd
536
537 public Object MakeArray() {
538 return new BsonArray();

Callers

nothing calls this directly

Calls 3

ObjToBsonMethod · 0.95
SetErrmsgMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected