SqlQuery
laktory.models.resources.databricks.SqlQuery
¤
Bases: BaseModel
, PulumiResource
, TerraformResource
Databricks SQL Query
ATTRIBUTE | DESCRIPTION |
---|---|
access_controls |
SQL Query access controls
TYPE:
|
comment |
General description that conveys additional information about this query such as usage notes.
TYPE:
|
data_source_id |
Data source ID of the SQL warehouse that will be used to run the query.
TYPE:
|
name |
The title of this query that appears in list views, widget headings, and on the query page.
TYPE:
|
parent |
Id of the workspace folder storing the query
TYPE:
|
query |
The text of the query to be run.
TYPE:
|
run_as_role |
Run as role.
TYPE:
|
tags |
List of tags |
Examples:
from laktory import models
q = models.resources.databricks.SqlQuery(
name="create-view",
query="CREATE VIEW google_stock_prices AS SELECT * FROM stock_prices WHERE symbol = 'GOOGL'",
data_source_id="09z739ce103q9374",
parent="folders/2479128258235163",
access_controls=[
{
"group_name": "role-engineers",
"permission_level": "CAN_RUN",
}
],
)