[sqlite] Re: SQLite and Java

2006-08-09 Thread David Crawshaw
Umesh Nayak <[EMAIL PROTECTED]> wrote: Does SQLite work with Java? Yes. I have written a JDBC driver for SQLite 3: http://www.zentus.com/sqlitejdbc There are also other projects for working with SQLite in Java. See the wiki off www.sqlite.org d

Re: [sqlite] Recovery tool ?

2006-08-09 Thread RohitPatel9999
Once I experienced a problem during testing where multi-threaded Win32 Application (using SQLite 3.3.4) was running (in development environment) and due to power-failure, rollback journal file was OK but disk bad-sector damaged the sqlite db-file. When I restarted App, db could not be opened

Re: [sqlite] Multiple SELECTs (and single SELECT) and TRANSACTION ?

2006-08-09 Thread John Stanton
It depends upon your application. For it to function optimally you should make each transaction on your application an SQL transaction, commit it on success or rollback if there is a problem. In that way you make each transaction atomic and maintain the integrity of your database. Since

[sqlite] Re: Multiple SELECTs (and single SELECT) and TRANSACTION ?

2006-08-09 Thread Igor Tandetnik
RohitPatel wrote: While using SQLite dll Version 3.3.4 on Windows - Multiple threads/processes access SQLite database, - Each thread does some SELECTs, INSERTs or UPDATEs. Wrapping all read-only SELECEs with BEGIN TRANSACTION and using BEGIN EXCLUSIVE to wrap all UPDATEs or INSERTs

Re: [sqlite] Multiple SELECTs (and single SELECT) and TRANSACTION ?

2006-08-09 Thread RohitPatel9999
Thanks for clearing doubt. Now question is... While using SQLite dll Version 3.3.4 on Windows - Multiple threads/processes access SQLite database, - Each thread does some SELECTs, INSERTs or UPDATEs. Wrapping all read-only SELECEs with BEGIN TRANSACTION and using BEGIN EXCLUSIVE to wrap

[sqlite] Re: Foreign Keys

2006-08-09 Thread A. Pagaltzis
* John Newby <[EMAIL PROTECTED]> [2006-08-10 00:25]: > it recognises them if you put them in your create table > statement but it does not enforce them, is this correct? Yes. But note that you can retrofit enforcement yourself. Take a look at Enforce Foreign Key Integrity in SQLite with

Re: [sqlite] Foreign Keys

2006-08-09 Thread John Stanton
Parsing is a language term. You might recall being taught to parse a sentence into subject and predicate, then phrases, verbs nouns, articles etc. A computer language parser does the same thing, lexical analysis to extract the words and syntactical analysis to match to the grammar. That

RE: [sqlite] Second Btree Transaction stuck at commit

2006-08-09 Thread William Chan
Thanks Richard. I need btree indexing in a commercial project and looks like everybody is charging fee... and it wouldn't be a problem if I am the guy who is writing the check... I just did some simple stress test (inserting and query a million records) and you guys save my behind.

Re: [sqlite] Second Btree Transaction stuck at commit

2006-08-09 Thread drh
"William Chan" <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I think I figure out my problem. Looks like I need to close the cursor and > create a new cursor between the two Btree transactions. Then the second > btree commit will go thru. Can someone explain to me why? Thanks. > Before you go

RE: [sqlite] Second Btree Transaction stuck at commit

2006-08-09 Thread William Chan
Hi Guys, I think I figure out my problem. Looks like I need to close the cursor and create a new cursor between the two Btree transactions. Then the second btree commit will go thru. Can someone explain to me why? Thanks. Regards, William -Original Message- From: William Chan

[sqlite] Foreign Keys

2006-08-09 Thread John Newby
FOREIGN KEY constraints are parsed but are not enforced. Hi, what does the above statement on the SQLite website mean? Call me stupid but I do not understand the word "parsed", I was thinking it meant, it recognises them if you put them in your create table statement but it does not enforce

[sqlite] Second Btree Transaction stuck at commit

2006-08-09 Thread William Chan
Hi, I wrote a test program for the Sqlite btree functions. First I start a btree transaction to create the table and insert a few record then I commit the btree transaction, after that I try to start btree transaction to delete some record. Everything returns successful until I try to commit

Re: [sqlite] Query Execution speed.

2006-08-09 Thread Kees Nuyt
On Wed, 9 Aug 2006 18:51:30 +0600, you wrote: >hi All, > >I have to use SQLite for one of my project as ":memory:" db. [snip] >which PRAGMA statements can improve the query speed. >the main queries are, INSERT and SELECT with joins. > >I have just tried the following PRAGMA > >

[sqlite] SQLite BCB3

2006-08-09 Thread JJ Thymes
Hey yall, i'm trying to use SQLite3 with Borland C++ Builder 3.0 Professional. To setup SQLite I used Remy Lebeau's instructions as listed here http://groups.google.com/group/borland.public.cppbuilder.students/browse_thread/thread/967c6ccd741835a9/a6a6ec014fb158ea?lnk=st==1=en#a6a6ec014fb158ea

Re: [sqlite] Query Execution speed.

2006-08-09 Thread Jens Miltner
Am 09.08.2006 um 05:51 schrieb Manzoor Ilahi Tamimy: hi All, I have to use SQLite for one of my project as ":memory:" db. // - Can I get a better speed if I change or omit some macros. I saw "

[sqlite] Query Execution speed.

2006-08-09 Thread Manzoor Ilahi Tamimy
hi All, I have to use SQLite for one of my project as ":memory:" db. // - Can I get a better speed if I change or omit some macros. I saw " http://www.sqlite.org/compile.html ". the macros defined here can only

Re: [sqlite] C precompiler to bytecode

2006-08-09 Thread drh
Christian Smith <[EMAIL PROTECTED]> wrote: > > > Run time compilation is not that expensive if the generated vm is cached. > Just have a per-connection hash, use the SQL as the hash key, and the > resulltingvm as the value. Upon first use, the SQL will not be in the > hash, and will be

Re: [sqlite] Announce: SQL Maestro Group SQLite tools introduction

2006-08-09 Thread Trevor Talbot
On 8/9/06, Me <[EMAIL PROTECTED]> wrote: Hi Maestro Group, >NOT linked with SQLight team I guess that's a dig on me. I took that to mean that since there was a complaint about the frequency of announcements, they didn't want to be mistaken for you making another announcement on the same day.

Re: [sqlite] Announce: SQL Maestro Group SQLite tools introduction

2006-08-09 Thread Me
Hi Maestro Group, NOT linked with SQLight team I guess that's a dig on me. They were FREE little tools I had laying around. Thought someone might get some use out of them. They won't know if I don't tell them. StanD http://www.sqlight.com/ IS linked with SQLight team. :) Lots of free SQLite

Re: [sqlite] Announce: SQL Maestro Group SQLite tools introduction

2006-08-09 Thread John Stanton
SQL Maestro Team wrote: Hi All, Two small notes first: 1. SQL Maestro Group is NOT linked with SQLight team, which messages you could read here last days. 2. It's our first announce and we promise to community to NOT send such messages too often - unfortunately, we don't release a new

Re: [sqlite] C precompiler to bytecode

2006-08-09 Thread Trevor Talbot
On 8/8/06, Nuno Lucas <[EMAIL PROTECTED]> wrote: On 8/8/06, Daniel Önnerby <[EMAIL PROTECTED]> wrote: > I'm just a bit curios if it would be possible to make like a C > precompiler or a macro of some kind that compiles/interpret the > SQL-statements to bytecode just like the sqlite_prepare does

Re: [sqlite] C precompiler to bytecode

2006-08-09 Thread Christian Smith
Daniel Önnerby uttered: Hi everyone! I'm just a bit curios if it would be possible to make like a C precompiler or a macro of some kind that compiles/interpret the SQL-statements to bytecode just like the sqlite_prepare does but does this when compiling/precompiling your application instead

[sqlite] Announce: SQL Maestro Group SQLite tools introduction

2006-08-09 Thread SQL Maestro Team
Hi All, Two small notes first: 1. SQL Maestro Group is NOT linked with SQLight team, which messages you could read here last days. 2. It's our first announce and we promise to community to NOT send such messages too often - unfortunately, we don't release a new version every day. :-) Let's

Re: [sqlite] Grabbing "default values" from the database...

2006-08-09 Thread Me
The value has to be NULL for the default value to fire. If it's an empty string, "", that's what you'll get. StanD. - Original Message - Subject: [sqlite] Grabbing "default values" from the database... I'm working on a project in C# that uses an SQLite database back-end. I have

[sqlite] Grabbing "default values" from the database...

2006-08-09 Thread Gordon Ellsworth
I'm working on a project in C# that uses an SQLite database back-end. I have a table set up so that some columns have default values, such as: CREATE TABLE mc_question (id integer primary key autoincrement, q_type varchar(5) default "MC", single_multi bool, negative_score bool, cumulative_all