Add two Trino datasets using an already existing account. 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: Trino
datasets: array of one or multiple datasets that 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.
npm install @luzmo/nodejs-sdk[
{
"count": 2,
"data": [
{
"rows": 0,
"featured": false,
"modified_at": "2024-08-14T09:43:46.417Z",
"cache": 0,
"uses_clickhouse_experimental": false,
"meta_sync_interval": 1,
"meta_sync_inherit": true,
"meta_sync_enabled": true,
"id": "bd9adfd6-d444-4d2d-aa22-1805ce4ad627",
"type": "dataset",
"account_id": "91acb3cc-dee6-4954-8a36-99c10f754eed",
"source_dataset": "91acb3cc-dee6-4954-8a36-99c10f754eed",
"subtype": "trino",
"storage": "client",
"name": {
"en": "database - table"
},
"source_sheet": "schema.table",
"updated_at": "2024-08-14T09:43:46.443Z",
"created_at": "2024-08-14T09:43:46.417Z",
"description": null,
"contents": null,
"css": null,
"transformation": null,
"subtitle": null,
"source_query": null,
"is_variant": false,
"migrated_rows": null,
"last_metadata_sync_at": null,
"last_metadata_sync_attempt_at": "2024-08-14T09:43:46.419Z",
"original_id": null,
"acceleration_id": null,
"template_id": null,
"modifier_id": "e64a9830-0dad-4b11-a6d4-23972c124020",
"owner_id": "e64a9830-0dad-4b11-a6d4-23972c124020",
"source_template_id": null
},
{
"rows": 0,
"featured": false,
"modified_at": "2024-08-14T09:43:46.992Z",
"cache": 0,
"uses_clickhouse_experimental": false,
"meta_sync_interval": 1,
"meta_sync_inherit": true,
"meta_sync_enabled": true,
"id": "8b6f5026-dd15-41ab-9f7c-13659318f94b",
"type": "dataset",
"account_id": "91acb3cc-dee6-4954-8a36-99c10f754eed",
"source_dataset": "91acb3cc-dee6-4954-8a36-99c10f754eed",
"subtype": "trino",
"storage": "client",
"name": {
"en": "test - apic_purchaseorder"
},
"source_sheet": "public.apic_purchaseorder",
"updated_at": "2024-08-14T09:43:47.018Z",
"created_at": "2024-08-14T09:43:46.992Z",
"description": null,
"contents": null,
"css": null,
"transformation": null,
"subtitle": null,
"source_query": null,
"is_variant": false,
"migrated_rows": null,
"last_metadata_sync_at": null,
"last_metadata_sync_attempt_at": "2024-08-14T09:43:46.993Z",
"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
}
]
}
]