Esempio n. 1
0
 /// <summary>
 /// Executes an SQL Query on Spanner returning the results as a set of partial result streams.
 /// </summary>
 /// <param name="request">The query to execute. Must not be null.</param>
 /// <param name="session">The session to use for the query. Must not be null.</param>
 /// <param name="timeoutSeconds">The number of seconds to allow the query to execute for. A value of 0
 /// means "immediate timeout" or "no timeout" depending on <see cref="SpannerSettings.AllowImmediateTimeouts"/>.</param>
 /// <returns>A stream reader for the results.</returns>
 public virtual ReliableStreamReader GetSqlStreamReader(ExecuteSqlRequest request, Session session, int timeoutSeconds)
 {
     throw new NotImplementedException();
 }
Esempio n. 2
0
 /// <summary>
 /// Executes an SQL Query on Spanner returning the results as a set of partialresult streams.
 /// </summary>
 /// <param name="request"></param>
 /// <param name="session"></param>
 /// <returns></returns>
 public override ReliableStreamReader GetSqlStreamReader(ExecuteSqlRequest request, Session session)
 {
     return(new ReliableStreamReader(this, request, session));
 }
Esempio n. 3
0
 /// <summary>
 /// Executes an SQL Query on Spanner returning the results as a set of partial result streams.
 /// </summary>
 /// <param name="request">The query to execute. Must not be null.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The stream of partial results.</returns>
 public virtual AsyncServerStreamingCall <PartialResultSet> ExecuteSqlStream(ExecuteSqlRequest request, CallSettings callSettings = null)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 /// <inheritdoc />
 public override ReliableStreamReader GetSqlStreamReader(ExecuteSqlRequest request, Session session, int timeoutSeconds) =>
 new ReliableStreamReader(this, request, session, timeoutSeconds);
Esempio n. 5
0
 /// <summary>
 /// Executes an SQL Query on Spanner returning the results as a set of partialresult streams.
 /// </summary>
 /// <param name="request"></param>
 /// <param name="callSettings"></param>
 /// <returns></returns>
 public override AsyncServerStreamingCall <PartialResultSet> ExecuteSqlStream(ExecuteSqlRequest request, CallSettings callSettings = null)
 {
     Modify_ExecuteSqlRequest(ref request, ref callSettings);
     return(_callExecuteSqlStream.Call(request, callSettings));
 }
 /// <summary>
 /// Executes an SQL Query on Spanner returning the results as a set of partialresult streams.
 /// </summary>
 /// <param name="request"></param>
 /// <param name="session"></param>
 /// <returns></returns>
 internal virtual ReliableStreamReader GetSqlStreamReader(ExecuteSqlRequest request, Session session)
 {
     throw new NotImplementedException();
 }
 partial void Modify_ExecuteSqlRequest(ref ExecuteSqlRequest request, ref CallSettings settings) =>
 ApplyResourcePrefixHeaderFromSession(ref settings, request.Session);
 /// <summary>
 /// Constructor for normal usage, with default buffer size, backoff settings and jitter.
 /// </summary>
 internal SqlResultStream(SpannerClient client, ExecuteSqlRequest request, Session session, CallSettings callSettings)
     : this(client, request, session, callSettings, DefaultMaxBufferSize, s_defaultBackoffSettings, RetrySettings.RandomJitter)
 {
 }
Esempio n. 9
0
 /// <summary>
 /// Creates a new ReadOrQueryRequest from an ExecuteSqlRequest.
 /// </summary>
 /// <param name="request">The request to wrap in a generic ReadOrQueryRequest</param>
 /// <returns>A new ReadOrQueryRequest that wraps the given request</returns>
 public static ReadOrQueryRequest FromQueryRequest(ExecuteSqlRequest request) =>
 FromRequest(request);
Esempio n. 10
0
 /// <summary>
 /// Creates a <see cref="ReliableStreamReader"/> for the given request.
 /// </summary>
 /// <param name="request">The query request. Must not be null. The request will be modified with session and transaction details
 /// from this object. If this object's <see cref="TransactionId"/> is null, the request's transaction is not modified.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A <see cref="ReliableStreamReader"/> for the streaming SQL request.</returns>
 public ReliableStreamReader ExecuteSqlStreamReader(ExecuteSqlRequest request, CallSettings callSettings) =>
 ExecuteReadOrQueryStreamReader(ReadOrQueryRequest.FromRequest(request), callSettings);