The Google.Cloud.Spanner.V1 package provides low-level access to the Google Cloud Spanner API.
This is not recommended for most scenarios. Where possible, use the
Spanner ADO.NET provider instead. (That in turn depends on this package,
but provides a much more user-friendly API, and takes care of a lot of resource management automatically.)
Installation
Install the Google.Cloud.Spanner.V1 package from NuGet. Add it to
your project in the normal way (for example by right-clicking on the
project in Visual Studio and choosing "Manage NuGet Packages...").
Please ensure you enable pre-release packages (for example, in the
Visual Studio NuGet user interface, check the "Include prerelease"
box). Some of the following samples might only work with the latest
pre-release version (5.0.0-beta04) of Google.Cloud.Spanner.V1.
Authentication
When running on Google Cloud, no action needs to be taken to authenticate.
Otherwise, the simplest way of authenticating your API calls is to
set up Application Default Credentials.
The credentials will automatically be used to authenticate. See
Set up Application Default Credentials for more details.
[[["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-03-21 UTC."],[[["The `Google.Cloud.Spanner.V1` package offers low-level access to the Google Cloud Spanner API, but it's generally advised to use the Spanner ADO.NET provider instead for a more user-friendly experience."],["Version `5.0.0-beta05` is the latest pre-release version of the `Google.Cloud.Spanner.V1` package, with version `5.0.0-beta04` being the current version mentioned, and multiple older versions are available."],["To use the `Google.Cloud.Spanner.V1` package, it must be installed via NuGet, including enabling the option for pre-release packages during the installation process."],["Authentication on Google Cloud platforms is automatic, while for other environments, setting up Application Default Credentials is the recommended method for authenticating API calls."]]],[]]