Re: [sqlite] Re: SQLite and Java

2006-08-09 Thread Umesh Nayak
Thanks David, I downloaded the JDBC driver written by you after going thru the archives of mailing lists Regards, Umesh On 8/10/06, David Crawshaw <[EMAIL PROTECTED]> wrote: Umesh Nayak <[EMAIL PROTECTED]> wrote: > Does SQLite work with Java? Yes. I have written a JDBC driver for SQLite 3:

[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

[sqlite] SQLite and Java

2006-08-09 Thread Umesh Nayak
Dear all, Does SQLite work with Java? Regards, UmeshN

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 (da

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 Sqli

[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 (includi

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 all

[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 Trigg

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 appa

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. -Origin

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 to

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 [mailto

Re: [sqlite] Foreign Keys

2006-08-09 Thread Stefan de Konink
Probably it should be read as: Sqlite recognizes 'references' as SQL92(?) but does not do anything with it. Eq. you can have ids that totally not match. Stefan de Konink

[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 them

[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 > >sqlite3_e

[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&q=&rnum=1&hl=en#a6a6ec01

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 " http://www.sqlite.or

[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 resulti

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 compile

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] C precompiler to bytecode

2006-08-09 Thread John Stanton
Daniel's concept is that of Embedded SQL, a marriage not quite made in heaven probably because of the clumsiness in integrating the database schema and the data definitions of legacy languages. At one time we built a byte-coded implementation of a legacy language which did exactly as Daniel pr

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 t

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 version

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