ScalarQueryParameter(
name: Optional[str],
type_: Optional[Union[str, google.cloud.bigquery.query.ScalarQueryParameterType]],
value: Optional[
Union[str, int, float, decimal.Decimal, bool, datetime.datetime, datetime.date]
],
)
Named / positional query parameters for scalar values.
Inheritance
builtins.object > google.cloud.bigquery.query._AbstractQueryParameter > ScalarQueryParameterMethods
from_api_repr
from_api_repr(resource: dict)
Factory: construct parameter from JSON resource.
Name | Description |
resource |
Dict
JSON mapping of parameter |
Type | Description |
google.cloud.bigquery.query.ScalarQueryParameter | Instance |
positional
positional(
type_: Union[str, google.cloud.bigquery.query.ScalarQueryParameterType],
value: Optional[
Union[str, int, float, decimal.Decimal, bool, datetime.datetime, datetime.date]
],
)
Factory for positional paramater.
Type | Description |
google.cloud.bigquery.query.ScalarQueryParameter | Instance without name |
to_api_repr
to_api_repr()
Construct JSON API representation for the parameter.
Type | Description |
Dict | JSON mapping |
__init__
__init__(
name: Optional[str],
type_: Optional[Union[str, google.cloud.bigquery.query.ScalarQueryParameterType]],
value: Optional[
Union[str, int, float, decimal.Decimal, bool, datetime.datetime, datetime.date]
],
)
Initialize self. See help(type(self)) for accurate signature.
ScalarQueryParameter
ScalarQueryParameter(
name: Optional[str],
type_: Optional[Union[str, google.cloud.bigquery.query.ScalarQueryParameterType]],
value: Optional[
Union[str, int, float, decimal.Decimal, bool, datetime.datetime, datetime.date]
],
)
Named / positional query parameters for scalar values.