A database connection and migration module from Rhinogram, designed as an internal tool to be used alongside rhinozug-CLI. It wraps Knex.js with MySQL and PostgreSQL support, providing a configured Knex connection object for projects. Version 1.1.6 is the latest stable release; no public release cadence is indicated. Its key differentiator is tight integration with Rhinogram's migration tooling.
npm install rhinozugNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import, configure, and use rhinozug to obtain a typed Knex connection using MySQL.
Use import syntax or dynamic import: const rhinozug = await import('rhinozug')Use the returned object directly as a Knex connection.
Ensure config.client is 'mysql' or 'pg' (case-sensitive).
Switch to import syntax or use dynamic import: const rhinozug = await import('rhinozug')Install knex as a dependency: npm install knex
Install mysql: npm install mysql