Querying data
This page describes how to query data in Lenses via the CLI.
Last updated
Was this helpful?
Was this helpful?
lenses-cli \
query \
--live-stream "SELECT score, author FROM reddit_posts WHERE _sample=2 AND _sampleWindow=200"lenses-cli shell __ ________ ____
/ / ___ ____ ________ _____ / ____/ / / _/
/ / / _ \/ __ \/ ___/ _ \/ ___/ / / / / / /
/ /___/ __/ / / (__ ) __(__ ) / /___/ /____/ /
/_____/\___/_/ /_/____/\___/____/ \____/_____/___/
Docs at https://docs.lenses.io
Connected to [https://master.lenses.io:443] as [andrew], context [master]
Use "!" to set output options [!keys|!keysOnly|!stats|!meta|!pretty]
Crtl+D to exit
lenses-sql>