Class QueryResource.SqlRequest
Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT - UPDATE - DELETE -
SHOW - DESCRIBE - CREATE statement.
Inheritance
System.Object
QueryResource.SqlRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Google.Apis.Fusiontables.v2.dll
Syntax
public class SqlRequest : FusiontablesBaseServiceRequest<Sqlresponse>, IClientServiceRequest<Sqlresponse>, IClientServiceRequest
Constructors
SqlRequest(IClientService, String)
Constructs a new Sql request.
Declaration
public SqlRequest(IClientService service, string sql)
Parameters
Properties
Hdrs
Whether column names are included in the first row. Default is true.
Declaration
[RequestParameter("hdrs", RequestParameterType.Query)]
public virtual bool? Hdrs { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
HttpMethod
Declaration
public override string HttpMethod { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fusiontables.v2.Data.Sqlresponse>.HttpMethod
Gets the media downloader.
Declaration
public IMediaDownloader MediaDownloader { get; }
Property Value
MethodName
Declaration
public override string MethodName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fusiontables.v2.Data.Sqlresponse>.MethodName
RestPath
Declaration
public override string RestPath { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fusiontables.v2.Data.Sqlresponse>.RestPath
Sql
A Fusion Tables SQL statement, which can be any of - SELECT - INSERT - UPDATE - DELETE - SHOW -
DESCRIBE - CREATE
Declaration
[RequestParameter("sql", RequestParameterType.Query)]
public virtual string Sql { get; }
Property Value
Type |
Description |
System.String |
|
Typed
Whether typed values are returned in the (JSON) response: numbers for numeric values and parsed
geometries for KML values. Default is true.
Declaration
[RequestParameter("typed", RequestParameterType.Query)]
public virtual bool? Typed { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
Methods
Download(Stream)
Synchronously download the media into the given stream.
Warning: This method hides download errors; use DownloadWithStatus(Stream) instead.
Declaration
public virtual void Download(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
DownloadAsync(Stream)
Asynchronously download the media into the given stream.
Declaration
public virtual Task<IDownloadProgress> DownloadAsync(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
DownloadAsync(Stream, CancellationToken)
Asynchronously download the media into the given stream.
Declaration
public virtual Task<IDownloadProgress> DownloadAsync(Stream stream, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Synchronously download a range of the media into the given stream.
Declaration
public virtual IDownloadProgress DownloadRange(Stream stream, RangeHeaderValue range)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Net.Http.Headers.RangeHeaderValue |
range |
|
Returns
Asynchronously download a range of the media into the given stream.
Declaration
public virtual Task<IDownloadProgress> DownloadRangeAsync(Stream stream, RangeHeaderValue range, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.Net.Http.Headers.RangeHeaderValue |
range |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
DownloadWithStatus(Stream)
Synchronously download the media into the given stream.
Declaration
public virtual IDownloadProgress DownloadWithStatus(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
IDownloadProgress |
The final status of the download; including whether the download succeeded or failed.
|
InitParameters()
Initializes Sql parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Fusiontables.v2.FusiontablesBaseServiceRequest<Google.Apis.Fusiontables.v2.Data.Sqlresponse>.InitParameters()
Implements