Giter VIP home page Giter VIP logo

knex-soql's People

Contributors

greenkeeper[bot] avatar jsarafajr avatar modestfake avatar snyk-bot avatar vsaienko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

knex-soql's Issues

An in-range update of eslint-config-airbnb-base is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency eslint-config-airbnb-base was updated from 14.0.0 to 14.1.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-config-airbnb-base is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

this._wrapString is not a function

Cool project! Tried to use it to construct a raw soql query and received the following error:

let query = knex("Lead").select(["..."]).orderBy("CreatedDate", "desc").limit(10)
console.log(Object.keys(query.toString()));
Uncaught (in promise) TypeError: this._wrapString is not a function
    at FormatterSOQL.wrap (formatter.js?c688:13)
    at FormatterSOQL.columnize (formatter.js?c3fb:56)
    at columns.forEach.col (compiler.js?9793:12)
    at Array.forEach (<anonymous>)
    at QueryCompilerSOQL.columns (compiler.js?9793:8)
    at eval (compiler.js?9ba8:157)
    at Array.map (<anonymous>)
    at QueryCompilerSOQL.select (compiler.js?9ba8:156)
    at QueryCompilerSOQL.toSQL (compiler.js?9ba8:110)
    at BuilderSOQL.toSQL (builder.js?fbe0:115)
    at BuilderSOQL.Target.toQuery (interface.js?a440:26)
    at BuilderSOQL.toString (builder.js?fbe0:109)
    at encodeURIComponent (<anonymous>)
    at Rest.eval (rest.js?aafa:37)
    at step (tslib.es6.js?4d3a:91)
    at Object.eval [as next] (tslib.es6.js?4d3a:72)

Any thoughts? Thanks.

Error Cannot find module 'knex/lib/query/string'

Hi guys,

I try to use Query Builder in my node project with this exemple:

Query Builder
You can use knex-soql to build SOQL queries without execution:

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

const subquery = knex('Account.Contacts')
.select(['Contact.Id', 'Contact.Name'])
.orderBy('LastModifiedDate', 'desc')
.limit(3);

const query = knex('Account')
.select(['Id', 'Name', subquery])
.where({ Id: '1337' });

console.log(query.toString());
/*
select Id, Name, (
select Contact.Id, Contact.Name
from Account.Contacts
order by LastModifiedDate desc
limit 3
)
from Account
where Id = '1337'
*/


Question : When I try to start the app, i got this error message : Error: Cannot find module 'knex/lib/query/string'
Any ideas what i need to fix this problem ?

Specs:
knex: 2.2.0
knex-soql: 0.6.2
Node version: 16.15.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.