← Back to Blog
Stop Writing Mock Data by Hand: Generate SQL Sample Data & Inserts in 1 Click
Setting up a testing environment or seeding local database tables is often the most tedious part of building any new feature.
You write a clean CREATE TABLE SQL statement for a new feature. Then, you need test rows. Now you have to sit there and manually type out dozens of INSERT INTO statements with fake names, fake emails, and timestamps just to test your queries and UI.
- 1
Copy the SQL schema from your database tool or migration file.
- 2
Switch context and open a browser tab.
- 3
Open ChatGPT, Claude, or a web tool.
- 4
Write a prompt like: "Generate 10 realistic SQL INSERT rows for this schema."
- 5
Copy the resulting SQL inserts back into your database client.
It's a massive context switch that completely derails your flow state.
The Native SQL Power Tool for macOS
What if your clipboard could perform these SQL transformations natively on your Mac with a single shortcut?
With L2Cache, whenever you copy SQL, pressing Option + V in any editor instantly brings up the SQL Smart Actions menu:
- 1
Copy: Highlight your SQL schema in any editor (VS Code, Xcode, TablePlus) and hit Cmd + C.
- 2
Smart Action: Press Option + V to instantly bring up the Smart Actions menu.
- 3
Transform: Select "Sample Data (SQL Inserts)", "Sample Data (CSV)", or "Sample Data (Markdown)".
- 4
Done: The populated insert statements are streamed directly into your editor in sub-100ミリ秒.
L2Cache includes a full suite of instant SQL Smart Actions directly from your clipboard:
- Format SQL & Minify SQL: Clean up or compress complex multi-line queries.
- Extract Table Names & Columns: Pull referenced tables and fields without manual parsing.
- Convert to App Code (ORM): Turn SQL tables directly into ORM entities.
- Convert to UPDATE / DELETE: Instantly generate mutation statements.
- Suggest Indexes & Explain Query: Get on-device query performance insights.
No browser tabs. No context switching. Just instant, privacy-first SQL transforms on your Mac.
Try L2Cache for Mac
A completely native, privacy-first developer memory layer built for macOS.
ダウンロード 無料 Early Access