rik-db is a database ORM wrapper, currently at version 1.2.1. It provides a migration system with version 0.2.0.0 – Multicode. The package ships TypeScript types for better developer experience. It wraps common database operations and offers a migration workflow. Active development is indicated by ongoing releases. Key differentiators include its built-in migration tooling and TypeScript support out of the box, distinguishing it from simpler ORM wrappers.
npm install rik-dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to import Database, connect to a database, run a query, and disconnect using the rik-db ORM wrapper.
Update constructor calls to use an options object: new Database({ host, port, user, password }) instead of new Database(connectionString).Prepare to access properties directly on returned objects; stop relying on .get() methods.
Always set DB_PASSWORD in environment or pass password option explicitly.
Remove explicit connect() calls; database will connect automatically on first query.
Switch to ES modules: replace require with import and ensure 'type': 'module' in package.json.
Run the migration tool with the correct version flag: npx rik-db migrate --version 0.2.0.0
Ensure database server is running and host is spelled correctly. Use '127.0.0.1' if needed.
No dependency data recorded yet.