{"id":26882,"library":"database","title":"database","description":"The `database` package (v0.0.2) is an experimental, minimalistic npm module designed to provide a unified configuration and require pattern around existing database drivers, rather than imposing a generic ORM/ODM model. It acts as a curated wrapper for database packages like CouchDB and MongoDB, allowing each adapter to define its own API. Currently no adapters are included; the package is in early prototype stage and not production-ready. It offers no API of its own, only a pattern for adapter development.","status":"abandoned","version":"0.0.2","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install database","lang":"bash","label":"npm"},{"cmd":"yarn add database","lang":"bash","label":"yarn"},{"cmd":"pnpm add database","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package has no default export; it only provides a pattern.","symbol":"default","correct":"import database from 'database'"},{"note":"The package exports an empty object; destructuring will fail.","wrong":"const { database } = require('database')","symbol":"require","correct":"const database = require('database')"},{"note":"Adapters are required via subpath; no adapters exist yet.","symbol":"adapter","correct":"const couchdb = require('database/couchdb')"}],"quickstart":{"code":"// This package currently has no usable API.\n// To use a database, install a specific driver directly.\nconst { MongoClient } = require('mongodb');\nconst client = new MongoClient(process.env.MONGO_URI ?? '');\nclient.connect().then(() => console.log('connected'));","lang":"javascript","description":"Demonstrates that `database` package is non-functional; use direct drivers instead."},"warnings":[{"fix":"Use specific database drivers directly (e.g., 'mongodb', 'couchdb') instead of this package.","message":"The package exports an empty object; no adapters are included.","severity":"breaking","affected_versions":"0.0.2"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install and require a real database driver like 'couchdb' or 'mongodb'.","cause":"Package has no adapters; attempting to use a non-existent method.","error":"TypeError: database.couchdb is not a function"},{"fix":"Use a specific driver module (e.g., 'nano' for CouchDB).","cause":"Package does not ship any adapters.","error":"Cannot find module 'database/couchdb'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}