Closed xinlian12 closed 2 years ago
Missing Class
This class has been removed from v4, can directly pass a list of sqlParameters: https://github.com/Azure-Samples/azure-cosmos-java-sql-api-samples/blob/master/src/main/java/com/azure/cosmos/examples/queries/sync/QueriesQuickstart.java#L403
Missing Methods
Moved to response headers -> "x-ms-documentdb-is-ru-per-minute-used"
Removed in V4.
Removed in v4
Removed in v4
Removed in v4
You mentioned that getReadEndpoint, getWriteEndpoint, getConnectionPolicy, getPageSize has been removed v4. I don't get it, functionality that all these methods provides has this been moved under some other class/method or these functionality has been complete removed? How will I get these informations in v4?
Also I using Sync DB connection and using "CosmosClient dbclient = new CosmosClientBuilder().endpoint(accountUrl).key(key).consistencyLevel(consistency).buildClient();"
now how can I do crud operations in this. In v2 we used "dbclient.deleteCollection()", "dbclient.readDocument", "dbclient.queryDocuments", "dbclient.createDocument", "dbclient.deleteDocument", "dbclient.replaceDocument" etc. Now how can I do these functionalities with CosmosClient ? All these methods are only available in Async mode
getReadEndpoint, getWriteEndpoint, getConnectionPolicy, getPageSize has been removed completely in V4.
In V4, we support sync and async. Please find the sync examples here: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-api-java-sdk-samples
Close of no activity
Use this to keep tracking the migration questions from customer relates to sync v2 to v4.