Compiles Blade queries (RONIN) to SQLite statements. Current stable version is 3.29.10. Released continuously via GitHub Actions. Key differentiator: compiles high-level Blade query language to raw SQL, handles query transactions, schema definitions, and result formatting. Ships TypeScript types.
npm install blade-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a root model, define a model schema, and compile a query into SQL statements.
Wrap single query in an array: new Transaction([query], options)
Run statements for ROOT_MODEL creation before other schema changes.
Update formatResults usage to return { results, raw: true } from the callback.Pass options as second argument even if empty: new Transaction(queries, {})Use `import { Transaction } from 'blade-compiler'`Check if ronin_schema table exists before creating it, or run ROOT_MODEL creation only once.
Ensure transaction is initialized with valid queries and access statements after construction.
Use `import` syntax or switch to dynamic import(). The package is ESM-only.
No dependency data recorded yet.