Class ScalarQueryParameter (2.26.0)

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 > ScalarQueryParameter

Methods

from_api_repr

from_api_repr(resource: dict)

Factory: construct parameter from JSON resource.

Parameter
Name Description
resource Dict

JSON mapping of parameter

Returns
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.

Returns
Type Description
google.cloud.bigquery.query.ScalarQueryParameter Instance without name

to_api_repr

to_api_repr()

Construct JSON API representation for the parameter.

Returns
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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.