Code Monkey home page Code Monkey logo

Comments (2)

daveonhols avatar daveonhols commented on June 4, 2024

I just discovered this so I haven't tried it, but just to speculate. The results of a "by clause" query will be a keyed table, not a normal table, so maybe node-q doesn't handle that properly. Have you tried something as simple as putting "0!" in front of the query to remove the key - it will make the result a normal table which node-q may have more luck with.

A keyed table in Q is actually represented as a dictionary, the key of which is a table representing the cols / rows of the key, the value of the result dictionary is also a table, representing the values on the keyed table.

from node-q.

michaelwittig avatar michaelwittig commented on June 4, 2024

I fixed one bug associated with this (use version 1.1.1). A keyed table is now (as c.js does) turned into an Array of size 2 where the first element contains the keys and the second contains the values. Each is an array of objects.

But the question that remains open is how should a keyed table be turned into JavaScript because we don't have a very useful data structure to use. Any ideas on that?

from node-q.

Related Issues (20)

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.