Module licenseware.mongodata
Expand source code
import os
if os.getenv("ENVIRONMENT") == "desktop" and os.getenv("MONGOLOCAL", "false") == "true":
from .mongitadata import (
insert,
fetch,
update,
delete,
document_count,
delete_collection,
aggregate,
get_collection,
distinct,
create_collection
)
from .mongita_connection import collection
else:
from .mongodata import (
insert_many,
insert,
fetch,
update,
delete,
document_count,
delete_collection,
aggregate,
get_collection,
distinct,
create_collection
)
from .mongo_connection import collection
Sub-modules
licenseware.mongodata.mongita_connection
-
Function
collection
is a context manager which can be used as folows: … licenseware.mongodata.mongitadata
-
>>> from mongita import MongitaClientDisk >>> client = MongitaClientDisk() >>> hello_world_db = client.hello_world_db >>> mongoose_collection = …
licenseware.mongodata.mongo_connection
-
Function
collection
is a context manager which can be used as folows: … licenseware.mongodata.mongodata
-
Abstraction and validation of inserted data in mongodb …