HOW-TO · ASK & MEMORY

Find a query you ran last week.

By Chris Davidson, founder of yForest · Updated September 26, 2026

Not every SQL editor keeps a searchable log of everything you've ever run. Here's what QueryFlow keeps instead, and how to use it.

Start 14-day free trial Download on theMac App Store

No credit card. 14 days. Cancel in one click.

macOS 15+ · Apple Silicon native · 14-day free trial · No credit card

Quick answer: QueryFlow doesn't keep one searchable log of every statement you've run. It keeps verified queries, Ask answers you thumbs-up on purpose, and per-job run history for anything scheduled. Thumbs-up an answer the moment you confirm it, or keep reused queries in a named Flow Book.

The problem with "I know I ran this before"

Every SQL editor eventually produces the same moment: you wrote a good query last week, closed the tab, and now need it again but can't remember which connection, which tab, or what you called it. Some tools solve this with a searchable history of every statement ever run. QueryFlow solves a narrower, more deliberate version of it, and it's worth being clear about the difference before you go looking for a feature that isn't there.

What QueryFlow actually keeps

There's no single searchable log of every query you've ever typed. What QueryFlow keeps instead is more selective: in the Ask panel, giving an answer a thumbs up turns it into a verified query, saved on purpose rather than logged automatically. Verified queries are the ones you've already confirmed are correct, kept so you can reuse or reference them instead of re-deriving the same logic from scratch. For scheduled jobs specifically, run history keeps a per-job record of every execution, but that's about whether a job ran, not a general archive of ad hoc queries.

A worked example

Say you asked Claude last Tuesday for last month's churn by region, got a query back, checked it against a number finance already had, and it matched:

SELECT region, COUNT(*) AS churned_customers
FROM ANALYTICS.PUBLIC.CUSTOMERS
WHERE churn_date >= DATE_TRUNC('MONTH', CURRENT_DATE) - INTERVAL '1 MONTH'
AND churn_date < DATE_TRUNC('MONTH', CURRENT_DATE)
GROUP BY region;

If you gave that answer a thumbs up when you first saw it, it's sitting in verified queries now, findable and reusable the next time someone asks for the same cut. If you didn't, it's back to reconstructing it from memory, the same as it would be in a tool with no history feature at all.

Practical habits that cover the gap

What this isn't

This isn't a full-text search across every statement you've ever executed, and it isn't trying to be. A general history log tends to accumulate noise, half-finished drafts, typo'd queries, exploratory dead ends, until finding the one good query in it is its own search problem. Verified queries are smaller and more deliberate by design: what's in there is there because you decided it was worth keeping, not because the app logged it automatically.

If you need a broader audit trail

For a compliance or audit use case where every statement run against a database needs to be logged regardless of whether anyone marked it useful, that's a job for the warehouse's own query history, Snowflake's QUERY_HISTORY view or BigQuery's job history, not a client-side feature. QueryFlow is where you write and verify queries; the warehouse itself is the more complete and more durable record of everything that actually executed against it.

Naming things so future-you can find them

Since there's no automatic log to fall back on, naming discipline does more work here than it would in a tool with full history search. A Flow Book called Untitled 3 is unfindable in three weeks; one called Monthly Churn by Region is findable by scanning a short list of tabs. The habit that actually solves "I know I wrote this somewhere" isn't a search feature, it's naming things clearly the moment you write them, before you've forgotten what made that version different from the other five attempts.

A second scenario: the query you forgot to verify

Say you asked a question on a Friday afternoon, got an answer, glanced at it, and moved on without a thumbs up either way. The following Monday, you need the same cut and can't find it in verified queries, because it was never marked as one. This isn't a bug, it's the tradeoff of a deliberate rather than automatic history: the fastest fix in the moment is asking the same question again rather than hunting for an unverified answer that was never saved anywhere findable. Going forward, making the thumbs up a reflex the moment you trust an answer is the cheaper habit than trying to reconstruct one you skipped.

QueryFlow Studio $9.99/mo · $99/yr
QueryFlow Pipelines $29.99/mo · $199.99/yr

Frequently asked

Does QueryFlow log every query I run?

No, there's no single searchable log of every statement. Verified queries (thumbs-up in the Ask panel) and job run history are the closest equivalents.

How do I turn an Ask answer into something I can find later?

Give it a thumbs up when you confirm it's correct. That saves it as a verified query.

Where do I see history for a scheduled job?

Open the job and its run history lists every execution with scheduled time, actual time, and success or failure.

What if I need a complete audit log of every query executed?

Use the warehouse's own query history, like Snowflake's QUERY_HISTORY view, which logs regardless of any client-side tool.

Verify it once, find it later.

14-day free trial, no card. Thumbs up the answers worth keeping.

Start 14-day free trial

No credit card. 14 days. Cancel in one click.