Свойство | Type | Description | |
---|---|---|---|
$connection | Google\Cloud\BigQuery\Connection\ConnectionInterface | Represents a connection to BigQuery. |
Méthode | Description | |
---|---|---|
__construct ( array $config = [] ) | Create a BigQuery client. | |
bytes ( string | resource | Psr\Http\Message\StreamInterface $value ) : |
Create a Bytes object. | |
createDataset ( string $id, array $options = [] ) : |
Creates a dataset. | |
dataset ( string $id ) : |
Lazily instantiates a dataset. There are no network requests made at this point. To see the operations that can be performed on a dataset please see {@see Google\Cloud\BigQuery\Dataset}. | |
datasets ( array $options = [] ) : Generator |
Fetches datasets in the project. | |
date ( DateTimeInterface $value ) : |
Create a Date object. | |
int64 ( string $value ) : |
Create an Int64 object. This can be used to work with 64 bit integers as a string value while on a 32 bit platform. | |
job ( string $id ) : |
Lazily instantiates a job. There are no network requests made at this point. To see the operations that can be performed on a job please see {@see Google\Cloud\BigQuery\Job}. | |
jobs ( array $options = [] ) : Generator |
Fetches jobs in the project. | |
runQuery ( string $query, array $options = [] ) : |
Runs a BigQuery SQL query in a synchronous fashion. Rows are returned immediately as long as the query completes within a specified timeout. In the case that the query does not complete in the specified timeout, you are able to poll the query's status until it is complete. | |
runQueryAsJob ( string $query, array $options = [] ) : |
Runs a BigQuery SQL query in an asynchronous fashion. Running a query in this fashion requires you to poll for the status before being able to access results. | |
time ( DateTimeInterface $value ) : |
Create a Time object. | |
timestamp ( DateTimeInterface $value ) : |
Create a Timestamp object. |
Méthode | Description | |
---|---|---|
formatQueryParameters ( array $parameters ) : array | Formats query parameters for the API. |
public __construct ( array $config = [] ) | ||
$config | array | [optional] { Configuration options. @type string $projectId The project ID from the Google Developer's Console. @type CacheItemPoolInterface $authCache A cache for storing access tokens. **Defaults to** a simple in memory implementation. @type array $authCacheOptions Cache configuration options. @type callable $authHttpHandler A handler used to deliver Psr7 requests specifically for authentication. @type callable $httpHandler A handler used to deliver Psr7 requests. Only valid for requests sent over REST. @type string $keyFile The contents of the service account credentials .json file retrieved from the Google Developers Console. @type string $keyFilePath The full path to your service account credentials .json file retrieved from the Google Developers Console. @type int $retries Number of retries for a failed request. **Defaults to** `3`. @type array $scopes Scopes to be used for the request. @type bool $returnInt64AsObject If true, 64 bit integers will be returned as a {@see \Google\Cloud\Int64} object for 32 bit platform compatibility. **Defaults to** false. } |
public createDataset ( string $id, array $options = [] ) : |
||
$id | string | The id of the dataset to create. |
$options | array | [optional] { Configuration options. @type array $metadata The available options for metadata are outlined at the [Dataset Resource API docs](https://cloud.google.com/bigquery/docs/reference/v2/datasets#resource) } |
Résultat |
public date ( DateTimeInterface $value ) : |
||
$value | DateTimeInterface | The date value. |
Résultat |
public jobs ( array $options = [] ) : Generator |
||
$options | array | [optional] { Configuration options. @type bool $allUsers Whether to display jobs owned by all users in the project. **Defaults to** `false`. @type int $maxResults Maximum number of results to return. @type string $stateFilter Filter for job state. Maybe be either `done`, `pending`, or `running`. } |
Résultat | Generator |
public runQuery ( string $query, array $options = [] ) : |
||
$query | string | A BigQuery SQL query. |
$options | array | [optional] { Configuration options. @type int $maxResults The maximum number of rows to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. @type array $defaultDataset Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. @type int $timeoutMs How long to wait for the query to complete, in milliseconds. **Defaults to** `10000` milliseconds (10 seconds). @type bool $useQueryCache Whether to look for the result in the query cache. @type bool $useLegacySql Specifies whether to use BigQuery's legacy SQL dialect for this query. @type array $parameters Only available for standard SQL queries. When providing a non-associative array positional parameters (`?`) will be used. When providing an associative array named parameters will be used (`@name`). } |
Résultat |
public runQueryAsJob ( string $query, array $options = [] ) : |
||
$query | string | A BigQuery SQL query. |
$options | array | [optional] { Configuration options. @type array $parameters Only available for standard SQL queries. When providing a non-associative array positional parameters (`?`) will be used. When providing an associative array named parameters will be used (`@name`). @type array $jobConfig Configuration settings for a query job are outlined in the [API Docs for `configuration.query`](https://goo.gl/PuRa3I). If not provided default settings will be used. } |
Résultat |
public time ( DateTimeInterface $value ) : |
||
$value | DateTimeInterface | The time value. |
Résultat |
public timestamp ( DateTimeInterface $value ) : |
||
$value | DateTimeInterface | The timestamp value. |
Résultat |