I have a .json key file for a service account that I have used to connect to a GCP BigQuery database in a Python script and run SQL queries. All is good in Python and the sql queries work as expected.
I now want to do the same in C++ and have been frustrated to find very little on how to do this, even on the Google Cloud cpp website. Does anyone have example C++ code that shows how to connect to GCP BigQuery with a service account json key file and then run SQL queries on it? I am using MS Visual Studio and manage packages with VCPKG.