Storing erlang terms in RDMBS
Matthew Palmer
mpalmer@REDACTED
Sat May 30 02:36:18 CEST 2009
On Fri, May 29, 2009 at 11:53:39AM +0530, Koushik Narayanan wrote:
> What is the right way to store erlang terms in a RDBMS accessed using
> the odbc application.
>
> Since the sql_param function takes a string as query argument, how do
> we write a binary and more importantly fetch it back ?
>
> One naive idea would be to base64 the binary, but that is ineffecient
> and surely there should be a better way.
binary_to_list(term_to_binary(Term)) would be my first stab at it.
- Matt
--
Software engineering: that part of computer science which is too difficult
for the computer scientist.
More information about the erlang-questions
mailing list