Sqlite Data Starter Packs -
Here’s a plain-text summary of useful SQLite “starter pack” data snippets — small, ready-to-use INSERT statements for common development, testing, or demo scenarios.
1. Users & Profiles CREATE TABLE users ( id INTEGER PRIMARY KEY, username TEXT UNIQUE NOT NULL, email TEXT UNIQUE NOT NULL, created_at TEXT DEFAULT (datetime('now')) ); INSERT INTO users (username, email) VALUES ('alice_dev', 'alice@example.com'), ('bob_codes', 'bob@example.com'), ('charlie', 'charlie@example.com'), ('dana_test', 'dana@test.org');
2. Products / Inventory CREATE TABLE products ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, price REAL, stock INTEGER DEFAULT 0 ); INSERT INTO products (name, price, stock) VALUES ('Wireless Mouse', 24.99, 120), ('Mechanical Keyboard', 89.50, 45), ('USB-C Cable (2m)', 9.99, 300), ('Laptop Stand', 34.00, 18);
3. Orders (linked to users & products) CREATE TABLE orders ( id INTEGER PRIMARY KEY, user_id INTEGER, product_id INTEGER, quantity INTEGER, order_date TEXT DEFAULT (date('now')), FOREIGN KEY (user_id) REFERENCES users(id), FOREIGN KEY (product_id) REFERENCES products(id) ); INSERT INTO orders (user_id, product_id, quantity) VALUES (1, 1, 2), -- Alice bought 2 mice (2, 2, 1), -- Bob bought 1 keyboard (3, 3, 5), -- Charlie bought 5 cables (1, 4, 1); -- Alice bought 1 stand sqlite data starter packs
4. Simple Blog / Posts CREATE TABLE posts ( id INTEGER PRIMARY KEY, title TEXT, content TEXT, author_id INTEGER, published TEXT DEFAULT (datetime('now')) ); INSERT INTO posts (title, content, author_id) VALUES ('First post!', 'Hello SQLite world.', 1), ('SQLite tips', 'Use .mode column and .headers on', 2), ('Why I love offline-first', 'No network? No problem.', 3);
5. Logs / Events CREATE TABLE events ( id INTEGER PRIMARY KEY, event_type TEXT, message TEXT, created_at TEXT DEFAULT (datetime('now')) ); INSERT INTO events (event_type, message) VALUES ('INFO', 'Server started'), ('WARN', 'Low disk space'), ('ERROR', 'Failed to connect to API'), ('INFO', 'User alice_dev logged in');
6. Sample Query to test your starter pack -- Show user orders with product names SELECT u.username, p.name, o.quantity, o.order_date FROM orders o JOIN users u ON o.user_id = u.id JOIN products p ON o.product_id = p.id; Here’s a plain-text summary of useful SQLite “starter
How to use:
Save any of the above blocks into a .sql file (e.g., seed.sql ). Run with: sqlite3 mydb.db < seed.sql
or inside the SQLite shell: .read seed.sql Products / Inventory CREATE TABLE products ( id
Would you like a specific domain starter pack (e.g., e-commerce, todos, timesheets, library, chat messages)?
SQLite data starter packs are pre-configured, curated databases—such as the widely used Chinook dataset—designed for beginners to practice SQL without the burden of setting up complex servers. These tools, which are popular in learning environments, allow for immediate hands-on experience with SQL joins and aggregations. Read more about setting up SQLite on padjo.org . Getting to Know SQLite with a Client and a Database