Running Queries

Once you've added a connection you will be able to run SQL queries to explore your data, either interactively in the console, or via any PostgreSQL-compatible client.

Exploring Schemas

If you navigate to your workspace and then select Steampipe from the Pipes tab, you'll land on the interactive Query console.


From here, you can either inspect your schemas from the schema explorer on the left or dive right in and test out your own queries in the editor. The schema list supports flexible searching across all the tables in your schemas. For example, if you search for hack new, you will find a match for the hackernews_show_hn table in our hackernews schema.


Clicking the search result will automatically generate a query to select all the columns from that schema table, limited to 100 rows, and will automatically run it for you.


If you click the Edit button, you can amend the query, perhaps by selecting just the columns you're interested in or by adding a where clause to filter the results. Please note that we limit queries to 5,000 rows in the interactive query console.


Downloading Results

After you've run a query, you can download the results to a CSV file by clicking the Download button at the bottom of the query editor.

Saving Snapshots

To take a snapshot, click the Snap button at the top of the query editor after you have run the query you wish to snap.


This will then take you to the dashboard snapshot view.


You can manage this snapshot and browse others from the snapshots tab.

Scheduling Query Snapshots

Rather than manually capture query snapshots, Turbot Pipes allows you to schedule them and be notified when complete.

Scheduling a snapshot is as simple as navigating to the query editor, selecting a table or writing a query and choosing the Schedule dropdown from the query toolbar.


From here, you can either choose to create a new schedule or see any existing schedules that are configured for this query.

If you select New Schedule, you'll be presented with the following screen.


OptionDescription
TitleThe title of the schedule.
FrequencyHow often scheduled snapshot should run:Weekly, Daily, Hourly, Custom
For Weekly, Daily and Hourly frequencies, Turbot Pipes will automatically allocate a random time for these, with Weekly schedules being run at that time on a Sunday. For a Custom frequency, you can supply a cron schedule (not more than once every 15 minutes).
VisibilityOptionally choose the visibility of the snapshot generated. By default, visibility is restricted to only those with access to your workspace, but you can choose to share it so that anyone on the internet with the link can view it.
NotificationsOptionally send a summary notification to a Slack and/or Microsoft Teams webhook. This will contain a link back to the Snapshot.
Snapshot tagsAdd optional tags to the created snapshot. These can be used to easily find snapshots at a later date via the search functionality.

After scheduling a snapshot, you will be taken to the schedule detail page, which shows you editable details of the schedule, information on its next run and last run status, along with a link out to the process logs.

When the schedule runs, Pipes will upload the snapshot to your workspace as the system user, rather than attribute the activity to the user creating the schedule.