New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

knex-soql

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex-soql

SOQL plugin dialect for knex.js

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
152
increased by23.58%
Maintainers
1
Weekly downloads
 
Created
Source

SOQL Dialect for Knex.js

  • Salesforce Object Query Language (SOQL)
  • Knex.js

Install

npm install knex-soql

Usage

const client = require('knex-soql');
const knex = require('knex')({ client });

const soql = knex('Contact')
  .select(['Id', 'Name'])
  .where({ Name: 'example' })
  .orderBy('CreatedBy')
  .limit(10);

console.log(soql.toString());
// select Id, Name from Contact where Name = 'example' order by CreatedBy asc limit 10

TODO

  • Add warnings and errors when trying to use connection
  • Add tests for orderBy, groupBy, Limit

Copyright Yevhenii Baraniuk, 2017

MIT Licence

Keywords

FAQs

Package last updated on 21 Aug 2017

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