Simple SQL builder and validator for MySQL dialect (v0.1.0). Written in TypeScript, it provides a fluent API to construct SELECT, INSERT, UPDATE, DELETE queries with parameterized bindings. The library enforces a database schema defined at compile time, preventing runtime schema mismatches. Key features include schema-driven column references, binding parameters via eq$() family of methods, support for JOINs (inner, left, right), and no magic strings. Current version is 0.1.0 with an initial release. Release cadence is not yet established; development is ongoing on GitHub under the sedk monorepo.
npm install sedk-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Builds a SELECT query with parameterized WHERE clause using schema-driven column references and binding parameters.
Update to v0.1.0 and adjust code expecting UpdateInfo from aliased table eq() calls.
Define the database schema in a separate file and export it for reuse across queries.
Use package.json with "sedk-mysql": "0.1.0" (no caret or tilde) to lock version.
For advanced query features, consider alternatives like Knex.js or manually write SQL.
Ensure the schema object in the Database constructor contains a key 'public' matching the accessed path.
Run 'npm install sedk-mysql' and use 'import { ... } from "sedk-mysql"'.Use eq$() for parameterized queries, eq() for literal values.
No dependency data recorded yet.