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

Method CollInsert

storage/connect/Mongo3Interface.java:558–570  ·  view source on GitHub ↗
(Object dob)

Source from the content-addressed store, hash-verified

556 } // end of ArrayAdd
557
558 public boolean CollInsert(Object dob) {
559 try {
560 coll.insertOne((BsonDocument) dob);
561 } catch (MongoException me) {
562 SetErrmsg(me);
563 return true;
564 } catch (Exception ex) {
565 SetErrmsg(ex);
566 return true;
567 } // end try/catch
568
569 return false;
570 } // end of CollInsert
571
572 public long CollUpdate(Object upd) {
573 long n = -1;

Callers

nothing calls this directly

Calls 1

SetErrmsgMethod · 0.95

Tested by

no test coverage detected