Perform Ad Hoc Queries
This page shows you different methods for performing ad hoc queries.
- Python SDK
- JavaScript SDK
- REST API
- CLI
To see the full example, refer to the Stream Workers SDK Example.
q = "select * from SampleCargoAppDestTable limit 3"
result = app.query(q)
print(result)
To see the full example, refer to the Stream Workers SDK Example.
const q = "select * from SampleCargoAppDestTable limit 3";
result = await app.query(q);
console.log(result);
Use our interactive API Reference with code generation in 18 programming languages to Submit an Ad Hoc Query.
Use the gdnsl stream-worker CLI command to submit an ad hoc query.
# Submit an ad hoc Stream query and get the result records from a store.
gdnsl stream-worker TestStream --query "SELECT * FROM TestStreamTable"