New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fantasy-database

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fantasy-database

A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
17
-45.16%
Maintainers
2
Weekly downloads
 
Created
Source

fantasy-database

A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.

How does it work?

The schema is defined in schema.sql using MySQL compatible syntax (bleh) because SQLite doesn't seem to recognize PostgreSQL's serial datatype and won't auto-increment IDs when used. The seed data is defined in data.json.

If you are a node user, running npm install && npm start will rebuild the SQLite database file (which is checked into the root of this repository as fantasy.db).

How do I use it?

Make this repository a dependency of your project and automate the process of copying fantasy.db into your testing harness.

Because this repository is meant to be used by multiple programming languages, there are no affordances for auto-migrating your database (PRs welcome!). Use schema.sql as a reference for building migrations, and data.json for seeding if you'd like to test in something other than SQLite.

Keywords

test database

FAQs

Package last updated on 30 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts