Example #1
0
 partial void OnCopy(SpannerSettings existing)
 {
     ExecuteSqlStreamSettings = existing.ExecuteSqlStreamSettings;
     AllowImmediateTimeouts   = existing.AllowImmediateTimeouts;
 }
        /// <summary>
        /// Constructs a new <see cref="SessionPoolOptions"/>.
        /// </summary>
        public SessionPoolOptions()
        {
            var retry = SpannerSettings.GetDefault().CommitSettings.Timing.Retry;

            Timeout = (int)(retry?.TotalExpiration.Timeout).Value.TotalSeconds;
        }
Example #3
0
 partial void OnConstruction(Spanner.SpannerClient grpcClient, SpannerSettings effectiveSettings, ClientHelper clientHelper)
 {
     Settings = effectiveSettings;
     _callExecuteSqlStream = clientHelper.BuildApiCall <ExecuteSqlRequest, PartialResultSet>(
         GrpcClient.ExecuteStreamingSql, Settings.ExecuteSqlStreamSettings);
 }