Skip to main content

database_extensions

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

Overview

Namedatabase_extensions
TypeResource
Idazure.sql.database_extensions

Fields

NameDatatypeDescription
propertiesobjectContains the operation result properties for import/export operation.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, extensionName, resourceGroupName, serverName, subscriptionIdGets a database extension. This will return resource not found as it is not supported.
list_by_databaseSELECTdatabaseName, resourceGroupName, serverName, subscriptionIdList database extension. This will return an empty list as it is not supported.
create_or_updateINSERTdatabaseName, extensionName, resourceGroupName, serverName, subscriptionIdPerform a database extension operation, like polybase import

SELECT examples

List database extension. This will return an empty list as it is not supported.

SELECT
properties
FROM azure.sql.database_extensions
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new database_extensions resource.

/*+ create */
INSERT INTO azure.sql.database_extensions (
databaseName,
extensionName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ databaseName }}',
'{{ extensionName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;