A small SQLite database (with MySQL-compatible schema and seed data) containing fantasy books for testing query builders, ORMs, REST frameworks, etc. Version 2.0.1 is the latest stable release. This package is primarily used as a test fixture: it provides a pre-built SQLite database file (fantasy.db) and reference schema.sql + data.json for cross-language testing. Key differentiator: it offers a simple, consistent dataset for integration tests across multiple languages (Node, Python, etc.) without requiring a full database server.
npm install fantasy-databaseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to the bundled SQLite database using Sequelize and runs a simple SELECT query.
Regenerate the database by running 'npm start' after installation, or use schema.sql and data.json to build your own.
Refer to schema.sql for SQLite-compatible DDL; note that auto-increment is handled via INTEGER PRIMARY KEY in SQLite.
Copy fantasy.db from node_modules/fantasy-database to your test fixtures, or execute 'npm run start' (if using as a project dependency, use scripts in your own package.json).
Run 'npm install fantasy-database --save-dev' (or --save) to add it as a dependency.
Ensure you are using the correct path to fantasy.db (use require.resolve to locate it) or rebuild the database by executing 'npm start' in the package directory.
Use path.join(__dirname, 'node_modules', 'fantasy-database', 'fantasy.db') or rely on require.resolve to get the absolute path.
No dependency data recorded yet.