superdb is a Node.js database library for MySQL and PostgreSQL that provides a chainable query builder to avoid raw SQL splicing. Version 1.1.11 supports MySQL, PostgreSQL, Redis caching, and connection pooling. It offers methods like find, findOne, create, update, delete, and count, along with hooks for before/after operations. Differentiators include dynamic schema (no ORM models needed), fluent chain methods, and built-in cache support via Redis. The library is ESM-compatible and requires Node >= 6.0, but installation via GitHub URL is common for the latest changes.
npm install superdbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a database connection, runs a SELECT query with a WHERE clause and operator, and logs the result.
Use bulkCreate for inserting multiple records as an array.
Use conn.exists() directly and check the boolean return value.
Use 'yarn add https://github.com/yujintang/superdb.git' or 'npm install superdb' for stable releases.
Provide a valid Redis config object or URL in the Superdb constructor.
Run 'npm install superdb' or install from GitHub URL: 'npm install https://github.com/yujintang/superdb.git'
Ensure you call await db.createConn() before using conn.Op.
No dependency data recorded yet.