You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authentication and authorization mechanisms have been implemented for database operations.
A new init class has been introduced, which handles authentication and authorization.
The __init__ method of the init class takes an additional parameter auth, which is an authentication object.
Most methods in the init class now require a session_id parameter, which is used to authenticate and authorize the user before performing the operation.
If the user is not authenticated or authorized, a PermissionError exception is raised.
The create_collection method now checks if the user has the 'admin' role before allowing the creation of a new collection.
Code Organization
The database class from the old version has been renamed to init.
The create, read, write, create_collection, read_collection, write_collection, add_document, find_document, query, update_document, delete_document, link_collections, create_tree, and aggregate methods have been moved to the init class.
Dropped Viewing Tool
The viewing tool is no longer supported at the moment and a new one will be in the works for a later time.