google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Expose read-isolation parameters in 'Database.read'/'Database.execute_sql'

Open tseaver opened this issue 9 years ago • 4 comments

~~And therefore in Snapshot.read / Snapshot.execute_sql.~~

And therefore in Session.read / Session.execute_sql

From https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3615#issuecomment-317510958

tseaver avatar Jul 24 '17 18:07 tseaver

I dont think Snapshot.read and Snapshot.execute_sql should take in isolation parameters since all reads/queries within a multi use snapshot should use the same isolation. So it will be confusing if users can specify those as a parameters for read/query. Database.read and Database.execute_sql shouls take in these parameters and pass those to the constructor of snapshot.

vkedia avatar Jul 24 '17 19:07 vkedia

Oops, I mean to say Session.read and Session.execute_sql (because those are the ones called by Database.read / Database.execute_sql.

tseaver avatar Jul 24 '17 21:07 tseaver

Any updates on this?

vkedia avatar Aug 07 '17 18:08 vkedia

#3787 is removing those methods (because #3769).

tseaver avatar Aug 10 '17 18:08 tseaver