Database sample files
SQL scripts and tabular data for seeding test databases and testing import tools.
Formats in this category
| Format | What it is | Sizes |
|---|---|---|
| SQL sample files.sql application/sql | A text file of SQL statements, used for database dumps, migrations and seed data. | 1 KB to 10 MB |
| CSV sample files.csv text/csv | Tabular data as plain text, one record per line. The universal import and export format. | 1 KB to 20 MB |
| TSV sample files.tsv text/tab-separated-values | Tabular text with a tab between fields and a line break between rows. Simpler than CSV, because nothing is quoted. | 1 KB to 10 MB |
| JSONL sample files.jsonl application/jsonl | One JSON value per line. The usual format for logs, data pipelines and machine-learning datasets. | 1 KB to 10 MB |
About these files
A test database needs data, and writing it by hand is tedious. These scripts create a customers table and fill it with fictional rows using syntax that the common open-source databases all accept.
CSV and JSON Lines samples are listed here too, because bulk loading from those formats is usually faster than running INSERT statements.
Ready-made samples
Hand-designed files with realistic content or a specific edge case.
| File | Format | Size | Contents | Download |
|---|---|---|---|---|
| Sample customers SQL script (100 rows)sample-customers.sql | SQL | 19.3 KB19,787 bytes | Statements: 1 CREATE TABLE, 100 INSERT | Download SQL |
Popular downloads by size
Jump straight to a file. Every size is exact to the byte.
Or browse every format at one size: 1 KB, 5 KB, 10 KB, 25 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, 2 MB, 5 MB, 10 MB, 20 MB.
What to test
- Software development
General-purpose fixtures for building, debugging and demonstrating software that reads or writes files.
- CI/CD pipelines
Fixtures for build, test and deployment pipelines, with checksums for verification.
- Performance testing
Large, predictable inputs for measuring throughput, memory use and processing time.
Related categories
Database files: questions
- Which database engines are supported?
- The scripts avoid engine-specific syntax and run on SQLite, PostgreSQL, MySQL and MariaDB.
Engineering test checklist for database sample files
When designing automated integration suites for database pipelines, QA engineers must validate three distinct layers: binary container framing, metadata extraction accuracy, and resource-bounded parsing under concurrent load.
| Verification layer | Target assertion for database | Recommended test fixture or tool |
|---|---|---|
| 1. Signature & MIME check | Confirm backend inspects leading magic bytes rather than trusting the client Content-Type header for database uploads | Magic-Byte File Inspector & Spoofed-Extension Fixtures |
| 2. Boundary byte sizes | Test minimum valid header size, 1 MB default proxy limit, 10 MB application ceiling, and 50 MB+ streaming transfers | Size Buckets (1 KB–1 GB) & In-Browser Generator |
| 3. Corrupt payload handling | Verify that truncated streams or malformed headers in database return HTTP 400/422 instead of crashing the worker | Broken-File QA Suite & errors-400.json |
| 4. Checksum reproducibility | Assert that round-trip storage in cloud object storage preserves the exact byte length and SHA-256 digest | SHA-256 Checksum Directory |
Common failure points in database ingestion workflows
- Buffering entire files in process memory: Node.js, Python, and Java services that read an entire uploaded database fixture into a contiguous heap buffer before checking its header signature risk Out-Of-Memory (OOM) terminations when concurrent users upload 20 MB to 100 MB files. Read the first 4,096 bytes from the stream to validate magic bytes before streaming the body to object storage.
- Character encoding and metadata sanitization: Filenames and embedded metadata fields inside database containers can contain precomposed (NFC) or decomposed (NFD) Unicode sequences, spaces, or missing extensions. Combine the format fixtures above with our edge-case filename samples and the A to Z Format Index to cover every parser branch.
- Cross-platform viewer and codec parity: A database file that opens on a developer's macOS laptop may fail inside a minimal Alpine or Debian Linux container if required shared libraries or font tables are absent. Test parser behavior inside your exact production container image during CI using the copy-ready recipes on CLI & CI Automation.