{"id":18368,"library":"ezseed-database","title":"ezseed-database","description":"Ezseed database handler for the ezseed BitTorrent seedbox platform. Provides database abstraction and query building for tracking torrents, users, and settings. Version 1.0.6 is the latest stable release. The package uses a migration-based schema and supports SQLite and MySQL. Key differentiators include integration with the ezseed ecosystem and a simple, unopinionated API. Release cadence is sporadic; latest version is from 2015 and the project appears unmaintained.","status":"abandoned","version":"1.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/ezseed/database","tags":["javascript","ezseed"],"install":[{"cmd":"npm install ezseed-database","lang":"bash","label":"npm"},{"cmd":"yarn add ezseed-database","lang":"bash","label":"yarn"},{"cmd":"pnpm add ezseed-database","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"MySQL database driver for production use","package":"mysql","optional":true},{"reason":"SQLite database driver for development or small deployments","package":"sqlite3","optional":true}],"imports":[{"note":"Package is CJS, not ESM. Use require.","wrong":"const Database = require('ezseed-database')","symbol":"default","correct":"import Database from 'ezseed-database'"},{"note":"Default export, not named.","wrong":"import { Database } from 'ezseed-database'","symbol":"Database","correct":"const Database = require('ezseed-database')"},{"note":"Named export from main module.","wrong":"import connect from 'ezseed-database/connect'","symbol":"connect","correct":"const { connect } = require('ezseed-database')"}],"quickstart":{"code":"const Database = require('ezseed-database');\nconst db = new Database({\n  client: 'sqlite3',\n  connection: {\n    filename: './ezseed.db'\n  }\n});\n\n// Initialize tables based on migrations\ndb.init().then(() => {\n  console.log('Database ready');\n}).catch(err => console.error(err));\n\n// Insert a torrent\ndb.insert('torrents', {\n  info_hash: 'abc123',\n  name: 'ubuntu.iso',\n  size: 12345678\n}).then(console.log).catch(console.error);","lang":"javascript","description":"Initializes SQLite database and inserts a torrent record using the ezseed-database handler."},"warnings":[{"fix":"Ensure 'client' is exactly 'mysql' or 'sqlite3'.","message":"The 'client' option uses string-based driver names; 'mysql' and 'sqlite3' are the only supported values. Typo causes silent fallback to SQLite?","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Replace paths.getAll with paths.get or check version and use appropriate method.","message":"The 'paths.getAll' was renamed to 'paths.get' in v0.1.1. Old method may still exist but is deprecated.","severity":"deprecated","affected_versions":">=0.1.1"},{"fix":"Review GPL3 compliance; if needed, use prior version under MIT.","message":"License changed from MIT to GPL3 in v0.1.2, affecting downstream usage and redistribution.","severity":"breaking","affected_versions":">=0.1.2"},{"fix":"Ensure database is empty or match migration expectations, or handle migration errors.","message":"The package expects a pre-existing database structure? Migrations run only on init() and may fail if tables exist with incompatible schema.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install ezseed-database' or add to package.json.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'ezseed-database'"},{"fix":"Install the required driver: 'npm install mysql' or 'npm install sqlite3'.","cause":"Optional database driver not installed.","error":"Error: Cannot find module 'mysql' (or 'sqlite3')"},{"fix":"Use 'const Database = require('ezseed-database')' not 'import { Database } from ...'.","cause":"Using default import incorrectly as named import.","error":"TypeError: Database is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}