Socket
Socket
Sign inDemoInstall

azure-odata-sql

Package Overview
Dependencies
0
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    azure-odata-sql

Convert OData queries into SQL statements


Version published
Weekly downloads
85
decreased by-52.25%
Maintainers
2
Install size
145 kB
Created
Weekly downloads
 

Readme

Source

azure-odata-sql

This library contains functionality to convert OData queries into SQL statements.

The library uses types from the mssql npm package to represent parameter types. The query object is in the format produced by azure-query-js.

Installation

npm i azure-odata-sql

Usage

The library currently exports a single function:

require('azure-odata-sql').format(query, tableConfig)

The query parameter is an object with any of the following properties:

PropertyDescription
skipNumber of rows to skip
takeNumber of rows to take
inlineCountSet to allpages to include a total count query
resultLimitNumber of rows to limit the query to
selectionsColumns to select
filtersFilters to apply
orderingColumns to sort by
idRecord identifier
includeDeletedInclude soft deleted columns

The tableConfig is an object with any of the following properties:

PropertyDescription
nameThe name of the table being queried
schemaThe database schema name for the table
flavorEither mssql or sqlite
softDeleteTrue if the table supports soft delete with a column called deleted

FAQs

Last updated on 04 Oct 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc