This interface defines virtual methods for each of the user-facing overload sets in DatastoreClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DatastoreClient.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-23 UTC."],[[["The webpage provides documentation for the `DatastoreConnection` class, which is part of the Google Cloud Datastore C++ client library, and includes a list of versions available for this class, with version 2.37.0-rc being the latest."],["`DatastoreConnection` defines virtual methods that mirror user-facing overload sets in `DatastoreClient`, allowing users to customize behavior, such as through mocking, when testing code that uses `DatastoreClient`."],["The class documentation outlines various methods for interacting with Datastore, including `Lookup`, `RunQuery`, `RunAggregationQuery`, `BeginTransaction`, `Commit`, `Rollback`, `AllocateIds`, and `ReserveIds`, detailing their respective request and response types."],["To obtain a concrete implementation of `DatastoreConnection`, one must use the `MakeDatastoreConnection()` function, and for mocking purposes, the `MockDatastoreConnection` class is provided."]]],[]]