google.cloud.bigquery.query.ArrayQueryParameter¶
-
class
google.cloud.bigquery.query.
ArrayQueryParameter
(name, array_type, values)[source]¶ Named / positional query parameters for array values.
- Parameters
name (Optional[str]) – Parameter name, used via
@foo
syntax. If None, the parameter can only be addressed via position (?
).array_type (str) – Name of type of array elements. One of ‘STRING’, ‘INT64’, ‘FLOAT64’, ‘NUMERIC’, ‘BOOL’, ‘TIMESTAMP’, or ‘DATE’.
values (List[appropriate scalar type]) – The parameter array values.
-
__init__
(name, array_type, values)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(name, array_type, values)Initialize self.
from_api_repr
(resource)Factory: construct parameter from JSON resource.
positional
(array_type, values)Factory for positional parameters.
Construct JSON API representation for the parameter.
-
classmethod
from_api_repr
(resource)[source]¶ Factory: construct parameter from JSON resource.
- Parameters
resource (Dict) – JSON mapping of parameter
- Returns
Instance
- Return type
-
classmethod
positional
(array_type, values)[source]¶ Factory for positional parameters.
- Parameters
array_type (str) – Name of type of array elements. One of ‘STRING’, ‘INT64’, ‘FLOAT64’, ‘NUMERIC’, ‘BOOL’, ‘TIMESTAMP’, or ‘DATE’.
values (List[appropriate scalar type]) – The parameter array values.
- Returns
Instance without name
- Return type