How can I persist a collections field (e.g. List[String]
or Set[Int]
) with Squeryl? What's the best way to encode it such that Squeryl won't create an association table?
Asked
Active
Viewed 544 times
4

Jim Ferrans
- 30,582
- 12
- 56
- 83

notnoop
- 58,763
- 21
- 123
- 144
-
+1 just for pointing me to Squeryl, looks neat! – Jim Ferrans Oct 25 '10 at 04:17
-
How would you expect the database to be structured, if not with a second table? – pkaeding Jan 28 '11 at 21:42
-
1@pkaeding: potentially using special delimited encoding format, like json or csv-like format. – notnoop Jan 28 '11 at 21:55
1 Answers
3
You maybe should consider writing your own type. Package customtypes can be a goood startpoint.

v6ak
- 1,636
- 2
- 12
- 27