|
Download sys/sql-0005.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sys/sql-0005.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@034ba678829a1c436b19d43dd3adab33b5170a80/sys/sql-0005.jsonl
-
curl -L -o sql-0005.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sys/sql-0005.jsonl
1.88 kB
| {"type": "session", "harness": "deepseek-harness", "id": "sql-0005", "name": "SQLite best practices"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "How do I use SQLite effectively?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "```sql\n-- Schema design\nCREATE TABLE users (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n email TEXT UNIQUE NOT NULL,\n name TEXT NOT NULL,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE INDEX idx_users_email ON users(email);\n\n-- WAL mode (better concurrency)\nPRAGMA journal_mode=WAL;\nPRAGMA synchronous=NORMAL;\nPRAGMA cache_size=-64000; -- 64MB cache\nPRAGMA foreign_keys=ON;\n\n-- Transactions\nBEGIN;\nINSERT INTO orders (user_id, total) VALUES (1, 99.99);\nINSERT INTO order_items (order_id, product_id, qty) VALUES (1, 5, 2);\nCOMMIT;\n\n-- UPSERT\nINSERT INTO users (email, name) VALUES ('alice@test.com', 'Alice')\nON CONFLICT(email) DO UPDATE SET name=excluded.name;\n\n-- JSON support (SQLite 3.38+)\nSELECT json_extract(data, '$.name') FROM users;\nSELECT * FROM users WHERE json_extract(data, '$.age') > 18;\n\n-- CTEs\nWITH user_orders AS (\n SELECT user_id, COUNT(*) as cnt FROM orders GROUP BY user_id\n)\nSELECT u.name, uo.cnt FROM users u JOIN user_orders uo ON u.id = uo.user_id;\n\n-- Full text search\nCREATE VIRTUAL TABLE articles_fts USING fts5(title, body);\nSELECT * FROM articles_fts WHERE articles_fts MATCH 'search terms';\n```"}} | |