VRN
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
It works now. thanks!
Although isn't this approach a bit inorganic?
23 replies
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
sorry missed out no single quotes
23 replies
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
Query: select distinct ch.value from "channels", json_each("channels"."participants") ch where ch.value like '?' -- params: ["%some-id%"]
Still giving me empty result23 replies
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
oh interesting. let me try
23 replies
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
Hi Team, a new issue regarding this type of query. It seems the query params are not being passed in properly.
With the following query:
The sql generated is:
This query is returning an empty result
[]
But if I manually substitute the string in the query, it works:
Generated SQL
Result is:
Is this a bug or is there something I am doing wrong with respect to params?23 replies
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
Ok I got it to work like this:
Still cannot use
id: channels.id
or id: sql<string>'${channels.id}'
wierdly. Only throwing ambiguous id error only for id field.
Thanks for all your help @Angelelz !23 replies
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
If i do this:
I get the following error:
but with
no error it goes thru, but no results either
23 replies
DTDrizzle Team
•Created by VRN on 11/7/2023 in #help
SQLite json_each
if I select a col:
I get the error
Your "id" field references a column "channels"."id", but the table "channels" is not part of the query! Did you forget to join it
23 replies