Reference documentation and code samples for the BigQuery Client class Routine.
Routines are used-defined functions or stored procedures.
Example:
use Google\Cloud\BigQuery\BigQueryClient;
$bigquery = new BigQueryClient();
$dataset = $bigquery->dataset('my_dataset');
$routine = $dataset->routine('my_routine');
Namespace
Google \ Cloud \ BigQueryMethods
__construct
| Parameters | |
|---|---|
| Name | Description | 
| connection | Connection\ConnectionInterfaceA connection to the BigQuery API. This object is created by BigQueryClient, and should not be instantiated outside of this client. | 
| id | stringThe routine ID. | 
| datasetId | stringThe dataset ID. | 
| projectId | stringThe project ID. | 
| info | array[optional] An optional representation of the routine resource. | 
identity
Get the routine identity.
An identity provides a description of a nested resource.
Example:
$identity = $routine->identity();
echo $identity['routineId'];
| Returns | |
|---|---|
| Type | Description | 
| array | |
info
See also:
| Parameter | |
|---|---|
| Name | Description | 
| options | array[optional] Configuration options | 
| Returns | |
|---|---|
| Type | Description | 
| array | |
reload
See also:
| Parameter | |
|---|---|
| Name | Description | 
| options | array[optional] Configuration options | 
| Returns | |
|---|---|
| Type | Description | 
| array | |
exists
See also:
| Parameter | |
|---|---|
| Name | Description | 
| options | array[optional] Configuration options. | 
| Returns | |
|---|---|
| Type | Description | 
| bool | |
update
See also:
| Parameters | |
|---|---|
| Name | Description | 
| metadata | arrayThe full routine resource with desired modifications. | 
| options | arrayConfiguration options | 
| ↳ updateMask | arrayA list of field paths to be modified. Nested key names should be dot-separated, e.g.  | 
| Returns | |
|---|---|
| Type | Description | 
| array | |
delete
See also:
| Parameter | |
|---|---|
| Name | Description | 
| options | array[optional] Configuration options. |