Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.09 KB

File metadata and controls

53 lines (40 loc) · 1.09 KB

DatasetSource

Dataset source specification

Properties

Name Type
columns { [key: string]: string; }
format string
uploadId string
savedQueryId string
version number
description string
name string
sql string
url string
inline InlineData

Example

import type { DatasetSource } from '@hotdata/sdk'

// TODO: Update the object below with actual values
const example = {
  "columns": null,
  "format": null,
  "uploadId": null,
  "savedQueryId": null,
  "version": null,
  "description": null,
  "name": null,
  "sql": null,
  "url": null,
  "inline": null,
} satisfies DatasetSource

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as DatasetSource
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]