feat: add demo database seeding for end-to-end exploration - #37
Merged
Conversation
Add a comprehensive demo seeding system that gives new users a ready-to-explore e-commerce database with: - demo_shop database: 100 products, 500 customers, 5000+ orders with realistic data patterns including intentionally suboptimal queries for recommendations - Pre-configured index recommendations and slow query analysis - Sample saved queries in the SQL Editor (revenue reports, analytics, examples) - Sample agent conversation history - Scoped demo users (analyst, developer, viewer) Usage: - Manual: ./scripts/self-host/seed-demo-data.sh - Auto during install: DEEPSQL_SEED_DEMO_DATA=1 ./scripts/self-host/install.sh Files added: - docker/postgres/init/10_create_demo_shop.sql: E-commerce schema + sample data - scripts/self-host/seed-demo-data.sh: Orchestration script for full seeding Files modified: - scripts/self-host/install.sh: Optional demo seeding integration - .env.example: Document new DEEPSQL_SEED_* environment variables - README.md: Document demo database and seed-demo-data.sh script Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>
venkateshsakamuri-lab
marked this pull request as ready for review
August 9, 2026 13:02
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a comprehensive demo seeding system that gives new users a ready-to-explore e-commerce database with realistic data and pre-configured recommendations. This allows users to immediately see DeepSQL's full capabilities without connecting their own database first.
What's Included
Demo Shop Database (
docker/postgres/init/10_create_demo_shop.sql)A realistic e-commerce database with:
The schema includes intentionally suboptimal patterns that will trigger recommendations:
Seed Script (
scripts/self-host/seed-demo-data.sh)Orchestrates the full seeding process:
Integration with Install
DEEPSQL_SEED_DEMO_DATA=1to automatically seed during install./scripts/self-host/seed-demo-data.shUsage
Manual seeding after install:
Automatic seeding during install:
Testing
Environment Variables
DEEPSQL_SEED_DEMO_DATA01to seed during installDEEPSQL_SEED_CONNECTION_NAMEDemo Shop (E-commerce)DEEPSQL_SEED_SKIP_DEMO_DB01to skip database creationFiles Changed
docker/postgres/init/10_create_demo_shop.sql- E-commerce schema and datascripts/self-host/seed-demo-data.sh- Seeding orchestration scriptscripts/self-host/install.sh- Optional demo seeding integration.env.example- Document new environment variablesREADME.md- Document demo database and seed script