BatchQueryOperations Class
Query operations on a BatchRequest.
Mirrors client.query exactly: same method names, same signatures.
All methods return None; results arrive via
BatchResult.
Do not instantiate directly; use batch.query.
Constructor
BatchQueryOperations(batch: _BatchContext)
Parameters
| Name | Description |
|---|---|
|
batch
Required
|
|
Methods
| sql |
Add a SQL SELECT query to the batch. Mirrors sql. The entity set is resolved from the table name in the SQL statement at execute time. Example:
|
sql
Add a SQL SELECT query to the batch.
Mirrors sql. The entity set is resolved from the table name in the SQL statement at execute time.
Example:
batch.query.sql("SELECT accountid, name FROM account WHERE name = 'Contoso'")
sql(sql: str) -> None
Parameters
| Name | Description |
|---|---|
|
sql
Required
|
A single |
Exceptions
| Type | Description |
|---|---|
|
If |