Commit dcdde57
feat: Add Azure Cosmos DB store implementation
Add CosmosDBStore for Azure Cosmos DB NoSQL API support:
- Implements AsyncKeyValue protocol with full CRUD operations
- Uses partition key for collection isolation
- Supports TTL via Cosmos DB's native TTL feature
- Includes collection sanitization strategy
- Supports both client injection and URL/credential configuration
- Adds optional dependency: azure-cosmos>=4.7.0
Closes #292
Co-authored-by: Bill Easton <strawgate@users.noreply.github.com>1 parent 7fe04c8 commit dcdde57
6 files changed
Lines changed: 724 additions & 6 deletions
File tree
- src/key_value/aio/stores/cosmosdb
- tests/stores/cosmosdb
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments