A package to interact with ms graph /users functionality
Project description
This package is used as a layer above MS cosmos db python sdk to interact with data in ms cosmos db sql api.
DatabaseHelper:
DatabaseHelper.get_results():
This method is ussed to get the results from the cosmos db. It takes the query and the parameters of the query as input and returns the results as a list.
DatabaseHelper.get_result():
This method is used to get the result from the cosmos db. It takes the query and the parameters of the query as input and returns the result as a dictionary.
DatabaseHelper.get_column():
This method is used to get the column from the cosmos db. It takes the query and the parameters of the query as input and returns the column as a list.
DatabaseHelper.delete_item():
This method is used to delete the item from the cosmos db. It takes the item id, as well as the partition key (type) as input and returns None.
DatabaseHelper.upsert():
This method is used to upsert the item in the cosmos db. It takes the item as input and returns None.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for eam_db_helper-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7271b072ed988d79693263f73cedec7b8f3b12379ee4e28bca5eaa8bbfba088c |
|
MD5 | 2aca1a9650b5081379c1d142972d5775 |
|
BLAKE2b-256 | 8fa953c8351e985677dbfe0837bb363af1c4793d5deee84eaec5c39a0a087c9c |