An ORM for TypeScript/JavaScript projects that generates SQL statements for MySQL and other databases, tested with MSSQL. Current version: 2.0.18. Unlike full-fledged ORMs, this library is driver-agnostic — it only produces SQL strings and value arrays, requiring users to pass them to their own database connection driver. It supports table creation, CRUD operations, JOINs, validations, and raw SQL. Release cadence is irregular; the package is not widely adopted. Key differentiators: lightweight, no database driver binding, TypeScript type generation from table schemas.
npm install very-simple-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a table schema and generates a SELECT SQL statement with parameterized values.
Always pass the returned { sql, values } to your database driver's execute/query method.Inspect the TableField interface: use 'primaryKey' instead of 'PrimeryKey' in newer versions. Always define fields with exact casing.
Update select() calls: pass ['field1', 'field2'] instead of 'field1, field2'.
Replace { 'AS_DEFINED': 'AS DEFINED', value: '...' } with { value: '...' } in field definitions.Ensure you call new Table('name', [...fields]) with both arguments. The table must have at least one field.Use import { Table } from 'very-simple-orm' instead, or set { "type": "commonjs" } in your package.json.Use a type assertion or cast to any: (table as any).createTable(). Better yet, use the QueryBuilder API for SQL generation.
No dependency data recorded yet.