Questions tagged [query-engine]

Query Engine is an open-source javascript library for performing advanced queries, filters, searching and paging for javascript arrays and objects as well as Backbone.js Collections.

Query Engine is an open-source javascript library for performing advanced queries, filters, searching and paging for javascript arrays and objects as well as [Backbone.js]( is an extension for Backbone.js Collections.

15 questions
9
votes
3 answers

Prisma query engine not found on mac M1

I'm having an issue with running Prisma in my project. Running npx prisma generate works, but then running my app I get: /Users/user/Desktop/project/node_modules/@prisma/client/runtime/index.js:36466 4:29:05 PM web.1 | throw new…
mcw
  • 465
  • 1
  • 4
  • 14
2
votes
1 answer

Snowflake query engine strategy on several with query conditions

I am doing a migration job from pyspark query into snowflake query and wondering which option is better between below A, B options. To avoid unnecessary query, I would like to go B option if there are not that significant performance difference. In…
2
votes
2 answers

How do I get a collection of files with `write: false` in DocPad

I have a setup like so: portfolio.html.eco portfolio/ - project1.html.md - project2.html.md - etc. I want this to all be combined into a single large portfolio.html file in the out/ directory. All of my project files have the write: false…
Nathan Friedly
  • 7,837
  • 3
  • 42
  • 59
1
vote
1 answer

Accessing Trino Via Python

I'm trying to access trino via python and I keep getting the error below. This is to access the trino interface and retrieve data from oracle. Please advise on how this can be resolved. HttpError Traceback (most…
airdmhund
  • 43
  • 4
0
votes
0 answers

Python: Extracting multiple unique source documents from query engine response

I'm working on a project involving the llama_index library where I'm using an instance of a query engine to retrieve a response to a query. The response, an instance of Response class, is expected to contain a list of source nodes, each representing…
AuroraS
  • 59
  • 8
0
votes
1 answer

trino connector to flat files

I am trying to create trino connector to query the data available in a flat file (say a text file with 100 records, each record is separated by newline and each column separated by comma). Trino documentation page…
Gopi
  • 689
  • 1
  • 8
  • 17
0
votes
1 answer

Presto query engine with Azure Data Lake

I have a requirement to deploy a presto server which can help me query data stored in ADLS in Avro file formats. I have gone through this tutorial and it seems that the Hive is used as a catalogue/connector in presto to query from ADLS. Can I…
Bhanuday Birla
  • 969
  • 1
  • 10
  • 23
0
votes
1 answer

error in accessing tables from hive using apache drill

I am trying to read the data from my table abc which is in hive using Drill. For that i have created hive storage plugin with the configuration mentioned below { "type": "hive", "enabled": true, "configProps": { "hive.metastore.uris":…
Nightwing
  • 37
  • 6
0
votes
1 answer

How to combine queries in docpad?

I need to get only last week posts. I don't find examples in Documentation and for tests I use Query-Engine demo with this code: models = [ title: 'WRONG: Future' date: new Date("2015-05-23") , title: 'Correct 1' …
Gordio
  • 130
  • 7
0
votes
1 answer

Filtering @getFilesAtPath results in Docpad

In Docpad, the following code (using a Query-Engine helper and eco) pulls a list of file names from a directory tree and addds their url to an array: <% images = []; %> <% for file in @getFilesAtPath({relativeOutDirPath: 'images/'}).toJSON() : %> …
fraxture
  • 5,113
  • 4
  • 43
  • 83
0
votes
1 answer

What methods can be called on Docpad's Query tools?

In Docpad's documentation it lists a series of Querying helpers. Here's the link. The following list appears at the bottom. Among these helpers are @getCollection, @getFiles, @getFilesAtPath, etc. But there is no indication anywhere that I have been…
fraxture
  • 5,113
  • 4
  • 43
  • 83
0
votes
1 answer

How to get collections in path using pattern matching?

collections: posts: -> # @getCollection('documents').findAllLive({relativeDirPath: 'posts'}, [date: -1]) @getCollection('documents').findAllLive({relativeDirPath: {'$in' : ['posts', /post\/[0-9]+/ ]}}, [date: -1]) In the main…
bguiz
  • 27,371
  • 47
  • 154
  • 243
0
votes
1 answer

How to query on nested metadata with Docpad's query-engine

As an example, I have a document with nested custom metadata like: owner: {"id":"12345"} I've tried to find this document with: docpad.getCollection("documents").findAll({ "owner.id": "12345" }); but to no avail. What have I done wrong?
Kenny Ki
  • 3,400
  • 1
  • 25
  • 30
0
votes
3 answers

How to query documents in docpad based on arrays of objects

I have DocPad documents that look like this: --- categories: [{slug: ""}, {slug: ""}, ...] --- Document content. How can I query all documents which have a predefined slug value in the meta.category array?
Ashnur
  • 366
  • 3
  • 20
-1
votes
2 answers

dynamic backbone query with query-engine

i just started using https://github.com/bevry/query-engine i would like to know how i could create querys with dynamic data inside. here a code example: var query = "Berlin"; queryObject = '{"City":{$contains:…
Paul-Siteway
  • 87
  • 1
  • 10