MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / __init__

Method __init__

test/correctness/mongo_model.py:493–514  ·  view source on GitHub ↗
(self, options, collectionname='')

Source from the content-addressed store, hash-verified

491
492class MongoCollection(object):
493 def __init__(self, options, collectionname=''):
494 self.collectionname = collectionname
495 self.data = SortedDict()
496 self.options = options
497 self.mapUpdateOperator = {
498 '$inc': self.process_update_operator_inc,
499 '$mul': self.process_update_operator_mul,
500 '$rename': self.process_update_operator_rename,
501 '$setOnInsert': self.process_update_operator_set_on_insert,
502 '$set': self.process_update_operator_set,
503 '$unset': self.process_update_operator_unset,
504 '$min': self.process_update_operator_min,
505 '$max': self.process_update_operator_max,
506 '$currentDate': self.process_update_operator_current_date,
507 '$addToSet': self.process_update_operator_add_to_set,
508 '$pop': self.process_update_operator_pop,
509 '$pullAll': self.process_update_operator_pull_all,
510 '$pull': self.process_update_operator_pull,
511 '$push': self.process_update_operator_push,
512 '$bit': self.process_update_operator_bit,
513 }
514 self.indexes = []
515
516 def remove(self):
517 self.data = SortedDict()

Callers

nothing calls this directly

Calls 1

SortedDictClass · 0.85

Tested by

no test coverage detected