Closed codingedgar closed 2 years ago
After digging a bit into the code it seems
( \conn -> do
query conn
( Query
( """
SELECT "URL", response
FROM apicache
WHERE "URL" IN ($1)"""
)
)
(unsafeToForeign <$> URLs)
)
Is fine
Note: My previous example was working for an array of 1 element.
withConnection pool
( \conn -> do
query conn
( Query
( """
SELECT "URL", response
FROM apicache
WHERE "URL" = ANY ($1)
"""
)
)
[ unsafeToForeign [ (unsafeToForeign <$> urls) ] ]
)
Would be better.
Hi, super nice lib, thank you all for creating and maintaining it.
rn I'm doing this query:
Because (I might be terribly wrong) it seems I can only add
Row*
toquery
, buturls
isArray String
, and I do not know how many there could beIs there an idiomatic way to pass
Array String
toquery
?