Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database metadata through name, id, region #217

Closed
wants to merge 4 commits into from

Conversation

synedra
Copy link
Contributor

@synedra synedra commented Feb 23, 2024

Added dbops calls to the astraDB creation to gather name, id, and region. Exposed through attributes:
astradb.name
astradb.region
astradb.id

Additionally added "name, full_name" to collections as well as the database
col.name
col.fullname
col.database

Also added client_options at the DB level. It is set outside the class so we could expose it at the collection level or within the asyncs.

Also added collection.drop() and changed db.delete_collection() to db.drop_collection()

Tests for everything, everything is passing.

Document with needed items: https://docs.google.com/spreadsheets/d/1ykhgGAqgxdnGJfOWevGDCcD3K6cZPxlGtN99bZTt_S4/edit#gid=2080544998

@synedra synedra requested a review from clun February 23, 2024 21:23
@hemidactylus hemidactylus added the do_not_merge Don't merge yet! label Feb 26, 2024
@hemidactylus
Copy link
Collaborator

This is not meant for master, should be closed.

@synedra synedra closed this Feb 29, 2024
@hemidactylus hemidactylus deleted the pymongo_get_db_info branch March 8, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do_not_merge Don't merge yet!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants