Re: [sqlite] Serializing an object's vector or array using sqlite3 in c++

2014-11-21 Thread Sohail Somani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2014-11-21, 12:52 AM, Thane Michael wrote: > I've been searching for a way to serialize an object's vector using > sqlite3 but are yet find a working solution. How do I go about > making it happen, an example would be of great help. If your goal

Re: [sqlite] Serializing an object's vector or array using sqlite3 in c++

2014-11-21 Thread Nelson, Erik - 2
RSmith wrote on Friday, November 21, 2014 4:46 AM > > On 2014/11/21 08:09, Thane Michael wrote: > > Many of the answers I came across online implied that it wouldn't be > > as straightforward as serializing ints and strings. > > Of course a byte-stream serializer is most speed-and-size happy and

Re: [sqlite] Serializing an object's vector or array using sqlite3 in c++

2014-11-21 Thread Stephan Beal
On Fri, Nov 21, 2014 at 10:45 AM, RSmith wrote: > Alternatively you can serialize anything object-like to XML or JSON and > simply store the resulting string in the database. This allows you to not > spend a lot on DB design and to use the same DB layout for any future >

Re: [sqlite] Serializing an object's vector or array using sqlite3 in c++

2014-11-21 Thread RSmith
On 2014/11/21 08:09, Thane Michael wrote: Many of the answers I came across online implied that it wouldn't be as straightforward as serializing ints and strings. It would be equally difficult in any RDBMS, the difficulty does not lie with the Database, it lies with your objects. There are

Re: [sqlite] Serializing an object's vector or array using sqlite3 in c++

2014-11-20 Thread Thane Michael
Many of the answers I came across online implied that it wouldn't be as straightforward as serializing ints and strings. On Fri, Nov 21, 2014 at 1:04 AM, Igor Tandetnik wrote: > On 11/21/2014 12:52 AM, Thane Michael wrote: > >> I've been searching for a way to serialize an

Re: [sqlite] Serializing an object's vector or array using sqlite3 in c++

2014-11-20 Thread Igor Tandetnik
On 11/21/2014 12:52 AM, Thane Michael wrote: I've been searching for a way to serialize an object's vector using sqlite3 There's nothing in sqlite3 that would help (or hinder) this task. What made you believe otherwise? -- Igor Tandetnik ___

[sqlite] Serializing an object's vector or array using sqlite3 in c++

2014-11-20 Thread Thane Michael
Hi, I've been searching for a way to serialize an object's vector using sqlite3 but are yet find a working solution. How do I go about making it happen, an example would be of great help. A second question I have is whether it is possible to serialize an object which doesn't have attributes. An