[sqlite] Time difference for insertion and retrieval

2006-05-17 Thread Anish Enos Mathew
Hi all, I am using prepared statement for insertion and retrieval of records to and from the database. The time it takes to insert and retrieve 10,00,000 records varies in different trials. The time for different trials are as follows. For inserting 16 byte string the time

[sqlite] add primary key after inserts?

2006-05-17 Thread Brannon King
As I understand SQL, "alter table blah add primary key (blah1, blah2)" should be how you do it. The sqlite documentation seems to say otherwise. Actually, I cannot figure out from the documentation how to add a primary key after the table is created and data is entered. How is it done? Or is

[sqlite] SQLite db file size and NFS file locking issue

2006-05-17 Thread Rajan, Vivek K
Hello- Is there any limit (besides the OS files system limit) on how big the db file size can be with SQLite? Also, is there any NFS locking issue with SQLite database? Sometimes if a client opens the files and die, do we have problems reading the file again because NFS lock for the file

Re: [sqlite] Fwd: sqlite 2 versus sqlite3 and callbacks

2006-05-17 Thread John Stanton
Sqlite3_exec is three seperate sqlite function, prepare, bind and step. Just use them. JS Patty Fernandez wrote: Hello, Sqlite version 2 used to split the sqlite_exec routine into three separate functions utilizing a structure called sqlite_vm. This would allow the access of data without

RE: [sqlite] Control the scheme layout

2006-05-17 Thread Griggs, Donald
Delf, If I understand your question, the FAQ may help: http://sqlite.org/faq.html#q9 Donald Griggs Opinions are not necessarily those of Misys Healthcare Systems nor its board of directors. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May

[sqlite] Re: sqlite 2 versus sqlite3 and callbacks

2006-05-17 Thread Igor Tandetnik
Patty Fernandez <[EMAIL PROTECTED]> wrote: Sqlite version 2 used to split the sqlite_exec routine into three separate functions utilizing a structure called sqlite_vm. This would allow the access of data without using a callback function. Did these separate functions remerge in Sqlite 3 to the

RE: [sqlite] Make for windows

2006-05-17 Thread Brannon King
Thanks. That command created the files; however, grep sqlite3_sleep ./tsrc/* reports: sqlite3.h:int sqlite3_sleep(int); and that's all. In other words, it's declared but never defined. > So I downloaded the latest CVS files on my Linux box. What do I run to > generate the c files I need for

[sqlite] Control the scheme layout

2006-05-17 Thread strafer
Hi, I'm coding an C++ application based on a set of plugins. Each plugins adds a functionnary to the application and needs its own table (with fields) or a pre-existant table (with its own field). For instance, my DB contains the table TX with the field FX for the plugins X. I load the plugins

Re: [sqlite] Make for windows

2006-05-17 Thread drh
"Brannon King" <[EMAIL PROTECTED]> wrote: > So I downloaded the latest CVS files on my Linux box. What do I run to > generate the c files I need for compilation on my Windows box? In other > words, what make command is used to generate the files for the zip = > source > download? Where do the

[sqlite] Make for windows

2006-05-17 Thread Brannon King
So I downloaded the latest CVS files on my Linux box. What do I run to generate the c files I need for compilation on my Windows box? In other words, what make command is used to generate the files for the zip source download? Where do the files end up? Do I need any special parameters to

Re: [sqlite] Réf. : Re: [sqlite] Réf. : Re: [sqlite] DB in memory - table create won't work

2006-05-17 Thread Mario . Hebert
lp" for instructions Sqlite> .schema Sqlite> create table test(int a ); Sqlite> insert into test values(5); Sqlite> .schema CREATE TABLE test(int a ); Sqlite> select * from test; 5 Sqlite> __ Information NOD32 1.1543 (20060517) __ Ce message a ete verifie par NOD32 Antivirus System. http://www.nod32.com

[sqlite] Réf. : Re: [sqlite] Réf. : Re: [sqlite] DB in memory - t able create won't work

2006-05-17 Thread Night Media LTD
; create table test(int a ); Sqlite> insert into test values(5); Sqlite> .schema CREATE TABLE test(int a ); Sqlite> select * from test; 5 Sqlite> __ Information NOD32 1.1543 (20060517) __ Ce message a ete verifie par NOD32 Antivirus System. http://www.nod32.com

[sqlite] sqlite3_sleep

2006-05-17 Thread Brannon King
I downloaded the "sqlite-source-3_3_5.zip" file, dropped it into a VC7.1 static lib project and compiled it. That worked fine (aside from numerous warnings about sizeof(size_t) possibly != sizeof(int)) , however it is missing the sqlite3_sleep function, which appears to reside in "experimental.c",

Re: [sqlite] Réf. : Re: [sqlite] DB in memory - table create won't work

2006-05-17 Thread Mario . Hebert
Well, I could understand more your situation since it was probably because the sync with the hardware was not ported properly to your platform and data was not being saved to the media. although, I just can't make sense why the opposite happens to me *sigh* Mario Hebert Legerity "Night

[sqlite] Réf. : Re: [sqlite] DB in memory - table create won't wor k

2006-05-17 Thread Night Media LTD
Got exactly the SAME issue With PHP 4.3 and the sqlite 3 extension. But was reversed. When creating :memory: database, its worked, But when creating :file database I got the "No such table" problem. I ve let down sqlite . And I ve retake mysql. Good luck

Re: [sqlite] DB in memory - table create won't work

2006-05-17 Thread Jay Sprenkle
On 5/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I got flash database to work for me. What I am trying now is to create a database in memory that I could sync later on in flash. The problem is that when I do a table create it does not seem to work: 1. I open database :

[sqlite] DB in memory - table create won't work

2006-05-17 Thread Mario . Hebert
I got flash database to work for me. What I am trying now is to create a database in memory that I could sync later on in flash. The problem is that when I do a table create it does not seem to work: 1. I open database :memory: with success. 2. I create a random table: create

[sqlite] Adding BeOS support to sqlite

2006-05-17 Thread Doug Shelton
Because Mozilla Firefox now incorporates sqlite, the Bezilla team has created added code to support THREADSAFE operation under BeOS, Zeta and Haiku OSs. If possible, we'd like to submit this code to the official sqlite repository. What is the process for submitting changes to sqlite code for

Re: [sqlite] Proposal: sqlite3_column_rowid

2006-05-17 Thread Dennis Cote
Ralf Junker wrote: Even if sqlite3_column_rowid can sometimes not exactly identify a data field, it can still do so reliably with the majority of queries IMHO. It could at least do so much better than any other work-around I can think of. This would finally enable applications to allow users

Re: [sqlite] calling convention ...

2006-05-17 Thread Roberto
cdecl throughout, and remember your callback & SQL function definitions as well ;-) On 17/05/06, Marten Feldtmann <[EMAIL PROTECTED]> wrote: I wanted to use the prebuild dll of sqlite - and I was looking for the information, what calling convention was used within the sqlite.dll. It seems to

[sqlite] calling convention ...

2006-05-17 Thread Marten Feldtmann
I wanted to use the prebuild dll of sqlite - and I was looking for the information, what calling convention was used within the sqlite.dll. It seems to me, that "cdecl" is used and NOT "stdcall" - right ? Marten

Re: AW: [sqlite] spatial sqlite anyone ?

2006-05-17 Thread Noel Frankinet
Martin Pfeifle wrote: I am very interested. We are working on spatial sqlite for almost one year. We plan to include sqlite into an embedded spatial application. You mention that there are open-source code for library 3 and 4. Can you give me a hint where to find it? I will contact you at the

Re: [sqlite] Sub select problem

2006-05-17 Thread Thomas Chust
On Wed, 17 May 2006, Malk0 wrote: [...] BUT if i add a GROUP BY clause in the subselect the results returned in ct is just false ex: - doing SELECT count(*) FROM (SELECT * FROM mytable GROUP BY col1) _TMPTABLE_; return one row with 20 in ct and that's FALSE, this is the total amount of row in

AW: [sqlite] spatial sqlite anyone ?

2006-05-17 Thread Martin Pfeifle
I am very interested. We are working on spatial sqlite for almost one year. We plan to include sqlite into an embedded spatial application. You mention that there are open-source code for library 3 and 4. Can you give me a hint where to find it? I will contact you at the end of the week providing

[sqlite] Sub select problem

2006-05-17 Thread Malk0
First of all i'm using Sqlite for 2 years now and just want to tell it's great! that's done and now here's why i'm sending this message to the list: I'm working on pagination and want to retrieve the number of row that i would normally retrieve without the Limit clause. So i hoped to use

[sqlite] spatial sqlite anyone ?

2006-05-17 Thread Noel Frankinet
Hello all, I would like to set up a project to "spatialise" sqlite. 1 - to be able to create geometry colum that would store points,multipoints,lines,multilines,polygones and multi-polygones (Ogis "simple features") 2 - to be able to load and exchange data from WKT (well know text format) and

Re: [sqlite] Proposal: sqlite3_column_rowid

2006-05-17 Thread Ralf Junker
Hello Dennis, please ignore my previous response - it is all wrong because I used the wrong table definitions and data (see below for corrections). My appologies for this, and thanks for holding on to sqlite3_column_rowid. >I like your proposal, and I understand what you want it for (at least