Add one MySQL-backed SQL dataset, using an account that exists. This will create the Securable and Column entities and make them available for querying. The fields to be specified are:
Connection ID: The ID of the Connection. Retrieve the ID to specify as detailed here
provider: mysql
tables: array of one or multiple datasets you would like to add.
For direct table import, specify an object containing the table and schema for the dataset.
For SQL datasets, specify an object containing the internationalized name and sql for the dataset.
pkg:maven/com.luzmo/sdk@1.0.0{
"count": 1,
"data": [
{
"rows": 0,
"featured": false,
"modified_at": "2024-08-02T15:38:03.081Z",
"cache": 0,
"uses_clickhouse_experimental": false,
"meta_sync_interval": 1,
"meta_sync_inherit": true,
"meta_sync_enabled": true,
"id": "b5f0a751-5609-48b6-8419-b1fe928e873d",
"type": "dataset",
"account_id": "<your connection id>",
"source_dataset": "<your connection id>",
"subtype": "mysql",
"storage": "client",
"name": {
"en": "SQL query"
},
"source_query": "SELECT * FROM <schema>.<table>",
"updated_at": "2024-08-02T15:38:03.109Z",
"created_at": "2024-08-02T15:38:03.081Z",
"description": null,
"contents": null,
"css": null,
"transformation": null,
"subtitle": null,
"source_sheet": null,
"is_variant": false,
"migrated_rows": null,
"last_metadata_sync_at": null,
"last_metadata_sync_attempt_at": "2024-08-02T15:38:03.084Z",
"original_id": null,
"acceleration_id": null,
"template_id": null,
"modifier_id": "abca9830-0dad-4b11-a6d4-23972c124020",
"owner_id": "abca9830-0dad-4b11-a6d4-23972c124020",
"source_template_id": null
}
]
}