Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1005 Bytes

File metadata and controls

39 lines (26 loc) · 1005 Bytes

DataSourceQueryRequest

A read-only SQL query the caller (or agent) wrote. offset skips that many leading result rows, so callers can page through a large result a window of max_rows at a time.

Properties

Name Type
sql string
maxRows number
offset number

Example

import type { DataSourceQueryRequest } from '@knowledge-stack/ksapi'

// TODO: Update the object below with actual values
const example = {
  "sql": null,
  "maxRows": null,
  "offset": null,
} satisfies DataSourceQueryRequest

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 DataSourceQueryRequest
console.log(exampleParsed)

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