A structurally-typed MySQL query builder and ORM for TypeScript, leveraging advanced type system features for compile-time query safety. Version 1.39.1 (latest) is the final release; the project is deprecated with no further updates. Key differentiator: focus on structural typing (not nominal) for precise column type tracking, but superseded by the @squill family of packages (squill, mysql-5.7, sqlite3-browser) which offer similar safety with broader database support.
npm install typed-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a table with structurally typed columns and performs an insert using the typed query builder.
Migrate to @squill/squill and corresponding database-specific packages.
Update column definitions to { primaryKey: true } to { primaryKey: { autoIncrement: false } } or similar.Use explicit type assertions if literal type narrowing is required.
Ensure columns have case-sensitive collation or use BINARY keyword in comparisons.
Only import public API from the root or documented subpath exports (e.g., 'typed-orm/row').
Run 'npm install typed-orm' and ensure import path is correct.
Explicitly specify column names in order matching the insert array, e.g., .values({ id: 1 }) instead of positional values.Call .toSql() on the query object first to get { sql, values }.