A streaming ORM for MySQL databases, currently at version 0.1.1. This package is in early development (no recent updates) and provides a leveldb-style interface for MySQL tables using Node.js streams. It offers a simple API for CRUD operations (put, get, del) and streaming reads/writes via createReadStream, createKeyStream, and createWriteStream. Unlike full-featured ORMs like Sequelize or TypeORM, it focuses on minimal abstraction and stream-based data handling. Note: many options (sort, limit, page) are marked as TODO and not implemented. The package depends on the mysql npm package for database connections.
npm install mysql-stream-dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Establishes MySQL connection, registers a table, inserts a row, retrieves it, and demonstrates a read stream.
Use an alternative ORM such as Sequelize, TypeORM, or knex with mysql2.
Do not rely on these options; handle sorting/pagination manually via SQL queries.
Ensure that when using 'put', the row object includes the primary key if you intend an update, or omit it for a pure insert.
Always call db.registerTable() first.
Ensure the table is registered before calling db.table(): db.registerTable('myTable', { fields: [...] }) then db.table('myTable').Include the primary key value in the row object when calling put().
Do not install this package. Use an alternative like 'sequelize' or 'knex'.