Node.js library that translates OData query strings into SQL statements. Version 0.10.2 is the latest stable release, maintained on a low cadence. It supports basic OData operators ($filter, $orderby, $top, $skip) and translates them to parameterized SQL. Unlike full ORM solutions, this is a focused, zero-dependency query translator, producing raw SQL strings for use with any database driver. It does not handle OData $expand or complex joins.
npm install odata-to-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse OData query string and generate parameterized SQL with field mapping.
Manually join additional tables or handle expansions separately.
The library does not restrict selected columns; use post-processing or accept that all table columns are returned.
Ensure OData query uses only $filter, $orderby, $top, $skip, $inlinecount (limited support).
Ensure the OData query string is a string, even if empty: `''`.
Add the missing field to the fields object with proper dbName mapping.
No dependency data recorded yet.