Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rsql/builder

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsql/builder

RSQL High level API

  • 1.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@rsql/builder

API for building RSQL for Node.js and Browsers

npm lerna code style: prettier commitizen friendly tested with jest auto release

Installation

# with npm
npm install --save @rsql/builder

# with yarn
yarn add @rsql/builder

API

builder.comparison(selector, operator, value): ComparisonNode

Creates new ComparisonNode - similar to the createComparisonNode from the @rsql/ast but with simpler API (no need to create SelectorNode or ValueNode and accepts numbers as values)

builder.<operator>(selector, value): ComparisonNode
builder.eq(selector, value): ComparisonNode
builder.neq(selector, value): ComparisonNode
builder.le(selector, value): ComparisonNode
builder.lt(selector, value): ComparisonNode
builder.ge(selector, value): ComparisonNode
builder.gt(selector, value): ComparisonNode

Creates new ComparisonNode with the predefined operator for single value.

builder.<operator>(selector, values): ComparisonNode
builder.in(selector, values): ComparisonNode
builder.out(selector, values): ComparisonNode

Creates new ComparisonNode with the predefined operator for multiple values.

builder.logic(expressions, operator): LogicNode

Creates new LogicNode - similar to the createLogicNode from the @rsql/ast but with simpler API (accepts one or more expressions)

builder.<operator>(...expressions): LogicNode
builder.and(...expressions): LogicNode
builder.or(...expressions): LogicNode

Creates new LogicNode with the predefined operator for one or more expressions.

License

MIT

Keywords

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc