locked_user sundialsvc4 has asked for the wisdom of the Perl Monks concerning the following question:
I am using Storable to put information into an SQLite database. As it happens, I am freezeing the structure into a string, then inserting that into a Text-type column. (Of course, I am binding to a query parameter, thus allowing me to insert the arbitrary string.) It all seems to be working fine.
But then, a colleague’s question got me to wondering ... should I be using the Blob field-type for this? I don’t think so, but, “when in doubt, humbly petiton the Monks ...”
This arrangement is perfectly satisfactory for my needs... I’m not transporting the data anywhere, don’t have to keep it for a long time, don’t need the “freeze to a file” features of Storable, and don’t really need to “get jiggy wid it” (if you know what I mean). I simply need to store a Perl data-structure that took some time to create, so that I don’t have to create it a second time. But if there might be some column-data-type related conversion issue that I am not aware of, I’d just like to know about it sooner rather than later. (The target file-format will always be SQLite.)
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SQLite and Storable: is "Text" okay?
by assemble (Friar) on Oct 06, 2010 at 15:12 UTC | |
by ikegami (Patriarch) on Oct 06, 2010 at 15:53 UTC | |
by assemble (Friar) on Oct 06, 2010 at 17:11 UTC | |
by ikegami (Patriarch) on Oct 06, 2010 at 17:43 UTC | |
|
Re: SQLite and Storable: is "Text" okay?
by locked_user sundialsvc4 (Abbot) on Oct 06, 2010 at 15:23 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2010 at 15:51 UTC | |
|
Re: SQLite and Storable: is "Text" okay?
by locked_user sundialsvc4 (Abbot) on Oct 06, 2010 at 17:59 UTC | |
by Your Mother (Archbishop) on Oct 06, 2010 at 19:08 UTC |