Sources
Preview a SQL query
Changed onRuns one read-only query and answers at most 100 rows, for previewing a saved query. It reads the database live, so it needs the right to configure the connection. A key that belongs to no person (one created before keys named their creator) is refused with 403.
Scope: sources:write. A key holding only the legacy write scope does not satisfy it.
post/v1/sources/sql/{connectionId}/test-query
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Path parameters
connectionId, string uuid required
Source connection UUID.
Request body
object required
sql_text, string required
The query.
Response
The preview.
Sql Query Preview required
columns, object[]
rows, array[]
truncated, boolean
Whether more rows exist than were returned.
Changes
- info
endpoint added
- info