Converts OData query objects (as produced by azure-query-js) into parameterized SQL statements for mssql and sqlite. Version 0.2.0 is the latest stable release; the library is lightweight with a single `format` function and uses mssql types for parameter definitions. It supports skip, take, filters, ordering, inline count, and soft delete, making it a focused bridge between OData and SQL without a full ORM.
npm install azure-odata-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates converting a basic OData query with selections, filters, and pagination to a parameterized SQL statement.
Always set tableConfig.flavor to 'mssql' or 'sqlite'.
Install mssql: npm install mssql
Use `take` for LIMIT/Top and `skip` for OFFSET instead of `resultLimit`.
Set inlineCount: 'allpages' explicitly.
Ensure query is an object with at least one property (e.g., { take: 10 }).Use 'mssql' or 'sqlite'.
Provide an object with at least a `name` property.