Skip to main content

crops

Creates, updates, deletes, gets or lists a crops resource.

Overview

Namecrops
TypeResource
Idazure_extras.agrifood_farming.crops

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_or_updateinsertcrop_id, endpointCreates or updates a crop resource.
create_or_updatereplacecrop_id, endpointCreates or updates a crop resource.
deletedeletecrop_id, endpointDeletes Crop for given crop id.
get_rawexeccrop_id, endpointGets a specified crop resource.
list_rawexecendpointminCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, skipTokenReturns a paginated list of crop resources.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
crop_idstringId of the crop. Required.
endpointstringThe service endpoint host (no scheme). (default: )
maxCreatedDateTimestring (date-time)Maximum creation date of resource (inclusive). Default value is None.
maxLastModifiedDateTimestring (date-time)Maximum last modified date of resource (inclusive). Default value is None.
minCreatedDateTimestring (date-time)Minimum creation date of resource (inclusive). Default value is None.
minLastModifiedDateTimestring (date-time)Minimum last modified date of resource (inclusive). Default value is None.
skipTokenstringSkip token for getting next set of results. Default value is None.

INSERT examples

Creates or updates a crop resource.

INSERT INTO azure_extras.agrifood_farming.crops (
crop_id,
endpoint
)
SELECT
'{{ crop_id }}',
'{{ endpoint }}'
;

REPLACE examples

Creates or updates a crop resource.

REPLACE azure_extras.agrifood_farming.crops
SET
-- No updatable properties
WHERE
crop_id = '{{ crop_id }}' --required
AND endpoint = '{{ endpoint }}' --required;

DELETE examples

Deletes Crop for given crop id.

DELETE FROM azure_extras.agrifood_farming.crops
WHERE crop_id = '{{ crop_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Gets a specified crop resource.

EXEC azure_extras.agrifood_farming.crops.get_raw 
@crop_id='{{ crop_id }}' --required,
@endpoint='{{ endpoint }}' --required
;