Re: [sqlite] Insert a structure

2011-05-16 Thread Simon Slavin
On 16 May 2011, at 10:50am, Enrico Thierbach wrote: > From my experience I would recommend you to convert your structure into some > kind text format. JSON, with the excellent and well-performing yajl library, > is usually my favorite choice here. Enrico has a point. JSON is excellent for suc

Re: [sqlite] Insert a structure

2011-05-16 Thread Cousin Stanley
Enrico Thierbach wrote: > From my experience I would recommend you to convert your structure > into some kind text format JSON, with the excellent and well-performing > yajl library, is usually my favorite choice here. Thanks for recommending yajl The yajl-tools package under debian

Re: [sqlite] Insert a structure

2011-05-16 Thread Simon Slavin
On 16 May 2011, at 9:51am, StyveA wrote: > I'm working on a code in C, and I would like to insert a structure into a > table as BLOB type. > > Is-it possible to pass it entirely in one time? Or should I insert each > parameters of my structure independently? Assuming that this is straight C, an

Re: [sqlite] Insert a structure

2011-05-16 Thread StyveA
Enrico Thierbach-2 wrote: > > From my experience I would recommend you to convert your structure into > some kind text format. JSON, with the excellent and well-performing yajl > library, is usually my favorite choice here. > > /eno > > I didn't know yajl, but I'll have a look at it, it may

Re: [sqlite] Insert a structure

2011-05-16 Thread Enrico Thierbach
>From my experience I would recommend you to convert your structure into some >kind text format. JSON, with the excellent and well-performing yajl library, >is usually my favorite choice here. /eno On 16.05.2011, at 11:39, StyveA wrote: > > > > Enrico Thierbach-2 wrote: >> >> >> On 16.05.

Re: [sqlite] Insert a structure

2011-05-16 Thread StyveA
Enrico Thierbach-2 wrote: > > > On 16.05.2011, at 11:08, Christoph P.U. Kukulies wrote: > >> Am 16.05.2011 10:51, schrieb StyveA: >>> Hi all, >>> >>> I'm working on a code in C, and I would like to insert a structure into >>> a >>> table as BLOB type. >>> >>> Is-it possible to pass it entir

Re: [sqlite] Insert a structure

2011-05-16 Thread Enrico Thierbach
On 16.05.2011, at 11:08, Christoph P.U. Kukulies wrote: > Am 16.05.2011 10:51, schrieb StyveA: >> Hi all, >> >> I'm working on a code in C, and I would like to insert a structure into a >> table as BLOB type. >> >> Is-it possible to pass it entirely in one time? Or should I insert each >> param

Re: [sqlite] Insert a structure

2011-05-16 Thread StyveA
Christoph Kukulies wrote: > > Am 16.05.2011 10:51, schrieb StyveA: > A structure in C has a size and a storage address. So technically I see > no reason, why you can't do that. Just copy > the BLOB like you do a memcpy(). > But as soon as you cross architectures (big-endian, little-endian) or

Re: [sqlite] Insert a structure

2011-05-16 Thread Christoph P.U. Kukulies
Am 16.05.2011 10:51, schrieb StyveA: > Hi all, > > I'm working on a code in C, and I would like to insert a structure into a > table as BLOB type. > > Is-it possible to pass it entirely in one time? Or should I insert each > parameters of my structure independently? A structure in C has a size and

[sqlite] Insert a structure

2011-05-16 Thread StyveA
Hi all, I'm working on a code in C, and I would like to insert a structure into a table as BLOB type. Is-it possible to pass it entirely in one time? Or should I insert each parameters of my structure independently? Regards, StyveA -- View this message in context: http://old.nabble.com/Inser