This interface defines virtual methods for each of the user-facing overload sets in SqlUsersServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SqlUsersServiceClient.
To create a concrete instance, see MakeSqlUsersServiceConnection().
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eSqlUsersServiceConnection\u003c/code\u003e class, which is a crucial component for interacting with the \u003ccode\u003eSqlUsersServiceClient\u003c/code\u003e in the Google Cloud SQL API.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists available versions of the \u003ccode\u003eSqlUsersServiceConnection\u003c/code\u003e class, ranging from the latest release candidate \u003ccode\u003e2.37.0-rc\u003c/code\u003e down to version \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSqlUsersServiceConnection\u003c/code\u003e interface defines virtual methods, including \u003ccode\u003eDelete\u003c/code\u003e, \u003ccode\u003eGet\u003c/code\u003e, \u003ccode\u003eInsert\u003c/code\u003e, \u003ccode\u003eList\u003c/code\u003e, and \u003ccode\u003eUpdate\u003c/code\u003e, which correspond to the user-facing overload sets in \u003ccode\u003eSqlUsersServiceClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation explains how to create a concrete instance of \u003ccode\u003eSqlUsersServiceConnection\u003c/code\u003e using \u003ccode\u003eMakeSqlUsersServiceConnection()\u003c/code\u003e and highlights the use of \u003ccode\u003esql_v1_mocks::MockSqlUsersServiceConnection\u003c/code\u003e for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eEach method that the SqlUsersServiceConnection uses takes in a \u003ccode\u003erequest\u003c/code\u003e parameter to perform an action, and then returns either a \u003ccode\u003eStatusOr< google::cloud::sql::v1::Operation >\u003c/code\u003e or \u003ccode\u003eStatusOr< google::cloud::sql::v1::UsersListResponse >\u003c/code\u003e or \u003ccode\u003eStatusOr< google::cloud::sql::v1::User >\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]