[Haskell-cafe] persistent sqlite: getting record by ID

miro miroslav.karpis at gmail.com
Fri Sep 18 22:05:18 UTC 2015


Please, can you help me with following?

I’m trying to get a record from sqlite by id. I have found following peace of code,…but I’m missing the place that where can I specify the table I’m actually querying (like PersonId).

get $ Key $ (PersistInt64 $ fromIntegral id)


Cheers,
Miro





More information about the Haskell-Cafe mailing list