[sqlite] System.Data.SQLite: Add [app|web].config file to NuGet package

2012-09-13 Thread Felix Obermaier
Hello, I want to use System.Data.SQLite by invoking it via DbProviderFactories.GetFactory(providerName). If I have an old version installed on my machine I always get that instead of the one inside the referenced NuGet package. If uninstall it, the call fails because it cannot be found. I fou

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Pavel Ivanov
On Thu, Sep 13, 2012 at 9:29 PM, Igor Tandetnik wrote: > Pavel Ivanov wrote: >> On Thu, Sep 13, 2012 at 3:36 PM, Igor Tandetnik wrote: >>> On 9/13/2012 4:39 PM, Petite Abeille wrote: On Sep 13, 2012, at 10:24 PM, Igor Tandetnik wrote: >> In other words, a select should o

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Igor Tandetnik
Pavel Ivanov wrote: > On Thu, Sep 13, 2012 at 3:36 PM, Igor Tandetnik wrote: >> On 9/13/2012 4:39 PM, Petite Abeille wrote: >>> >>> >>> On Sep 13, 2012, at 10:24 PM, Igor Tandetnik wrote: >>> > In other words, a select should only ever see what existed at the > beginning of the query,

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Pavel Ivanov
On Thu, Sep 13, 2012 at 3:36 PM, Igor Tandetnik wrote: > On 9/13/2012 4:39 PM, Petite Abeille wrote: >> >> >> On Sep 13, 2012, at 10:24 PM, Igor Tandetnik wrote: >> In other words, a select should only ever see what existed at the beginning of the query, and that is that. >>> >>> >>> Ag

Re: [sqlite] c++ - Tell SQLite3, read the subsequent rows

2012-09-13 Thread Igor Tandetnik
ArbolOne wrote: > I would like to know how does one tell SQLite3 to > read the subsequent rows using the C/C++ API. One calls sqlite3_step whenever one wishes to advance to the next row. > void mySQLite3::setStmt(const Glib::ustring& s) { > SQLStatement = s; > if (mystmt == NULL) { rc = sqlite3_

[sqlite] c++ - Tell SQLite3, read the subsequent rows

2012-09-13 Thread ArbolOne
I have been able to write to the databaserepeatedly; several records have been added to it in a table named ‘name’ tolook like this: Id - tile - fname - mname - lname 100 - Mr - Me - Who - Papá 101 - Mrs - She - What - Mamá 102 - Mr - He - Who - Papá I am now trying to read all the informationfrom

Re: [sqlite] Covering index scan optimization

2012-09-13 Thread Elefterios Stamatogiannakis
On 13/09/12 23:02, Clemens Ladisch wrote: Eleytherios Stamatogiannakis wrote: It seems to me that using a covering index scan would always be faster in both cases (fewer disk page reads). Yes, if the index has fewer columns than the table. In my experience, the most frequent case is for an

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Simon Slavin
On 13 Sep 2012, at 11:36pm, Igor Tandetnik wrote: >> "statement-level read consistency. This guarantees that all the data >> returned by a single query comes from a single point in time—the time that >> the query began. Therefore, a query never sees dirty data or any of the >> changes made by

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Igor Tandetnik
On 9/13/2012 4:39 PM, Petite Abeille wrote: On Sep 13, 2012, at 10:24 PM, Igor Tandetnik wrote: In other words, a select should only ever see what existed at the beginning of the query, and that is that. Again, the concept of isolation level applies to transactions, not to individual quer

Re: [sqlite] SQLite website documentation query

2012-09-13 Thread Simon Slavin
On 13 Sep 2012, at 10:39pm, Richard Hipp wrote: > Links to the version 3 documentation, on the other hand, are plastered all > over the homepage (http://www.sqlite.org), getting high-value placement > right there under "Common Links" on the right-hand side, and featured on > the "About" page (ht

Re: [sqlite] SQLite website documentation query

2012-09-13 Thread Richard Hipp
On Thu, Sep 13, 2012 at 5:21 PM, Simon Slavin wrote: > I'm looking for an in-depth discussion of what each of the error codes > mean, like the one on the page > > http://www.sqlite.org/c_interface.html > > which appears from its position to be part of the current, up-to-date > documentation for S

[sqlite] SQLite website documentation query

2012-09-13 Thread Simon Slavin
I'm looking for an in-depth discussion of what each of the error codes mean, like the one on the page http://www.sqlite.org/c_interface.html which appears from its position to be part of the current, up-to-date documentation for SQLite. However, that page has the title "The C language interfa

Re: [sqlite] Windows 8: debugging "table is locked" errors

2012-09-13 Thread Simon Slavin
On 13 Sep 2012, at 8:54pm, Marcus Ilgner wrote: > Ok, I was under the impression that sqlite3_step would always return > the same error code as in the db. There's no good way to guess what sqlite3_step() will return, especially if you called it after ignoring another error result code from ano

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Petite Abeille
On Sep 13, 2012, at 10:24 PM, Igor Tandetnik wrote: >> In other words, a select should only ever see what existed at the beginning >> of the query, and that is that. > > Again, the concept of isolation level applies to transactions, not to > individual queries. Let me rephrase that, by parap

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Igor Tandetnik
On 9/13/2012 4:14 PM, Petite Abeille wrote: On Sep 13, 2012, at 9:30 PM, Igor Tandetnik wrote: If records are added by the same transaction that runs the SELECT statements, then they may or may not be observed (imagine for example that the statement has an ORDER BY clause, and a new row is i

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Petite Abeille
On Sep 13, 2012, at 9:30 PM, Igor Tandetnik wrote: > If records are added by the same transaction that runs the SELECT statements, > then they may or may not be observed (imagine for example that the statement > has an ORDER BY clause, and a new row is inserted that comes before the row > tha

Re: [sqlite] Covering index scan optimization

2012-09-13 Thread Clemens Ladisch
Eleytherios Stamatogiannakis wrote: > create table t (c1,c2, c3, c4); > create index idxtc1 on t(c1); > > explain query plan select c1 from t; > SCAN TABLE t (~100 rows) > > explain query plan select c1 from t order by c1; > SCAN TABLE t USING COVERING INDEX idxtc1 (~100 rows) >

Re: [sqlite] Windows 8: debugging "table is locked" errors

2012-09-13 Thread Marcus Ilgner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13.09.2012 17:50, Joe Mistachkin wrote: > Marcus Ilgner wrote: >> >> I'm one of the authors of the SQLite-WinRT component for Windows >> 8. > > Cool, the one on CodePlex? > Oh, sorry, I forgot to include the link [1]. The one at Codeplex is more

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Black, Michael (IS)
If you use rowid correctly (always incrementing rowid by using AUTOINCREMENT) you can always query records > lastrowid. That's probably easier. http://www.sqlite.org/autoinc.html So something like: startrowid = 0; lastrowid = select max(rowid) from mytable; select * from mytable where rowid >=

Re: [sqlite] Getting query results as new records are added

2012-09-13 Thread Igor Tandetnik
On 9/13/2012 3:20 PM, Paul Vercellotti wrote: I'm wondering if there's a way to get "incremental" results to a query after it's started, that includes new records added after the query began? If records are added by the same transaction that runs the SELECT statements, then they may or may no

[sqlite] Getting query results as new records are added

2012-09-13 Thread Paul Vercellotti
Hi there, I'm wondering if there's a way to get "incremental" results to a query after it's started, that includes new records added after the query began? That is, we've got a UI view that's showing query results, while a background task is adding records to the database, some of which may m

Re: [sqlite] Windows 8: debugging "table is locked" errors

2012-09-13 Thread Joe Mistachkin
Marcus Ilgner wrote: > > I'm one of the authors of the SQLite-WinRT component for Windows 8. > Cool, the one on CodePlex? > > Regarding this release, can you tell me what configuration was used to > compile it? > The default compilation options from the MSVC makefile were used, along with th

Re: [sqlite] Reducing size

2012-09-13 Thread Dmitry Baryshev
2012/9/12 Simon Slavin > > On 12 Sep 2012, at 8:00pm, Dmitry Baryshev wrote: > > > Actually this is a dynamically loaded plugin, so compiler won't strip > > unused functions. I cannot change this behaviour. That's why I'm asking > > about SQLITE_* directives. > > Ah. In that case you want secti

[sqlite] Ordering records problem (virtual table)

2012-09-13 Thread Alexey Daryin
Hello, During testing of our implementation of SQLite Virtual Table mechanism we've encountered an unexpected behavior. For the following virtual table structure: create table X(ID int, RL real) This query returns all the records in the correct descending order by RL field: Query 1: select * fr

[sqlite] Windows 8: debugging "table is locked" errors

2012-09-13 Thread Marcus Ilgner
Hello list, I'm one of the authors of the SQLite-WinRT component for Windows 8. We recently adapted it to use the official Windows 8 compatible release through NuGet. Thank you for providing a current version of SQLite through this channel! Regarding this release, can you tell me what configuratio

[sqlite] Possible Bug : SQLITE_RTREE_INT_ONLY compile option not returning correctly with sqlite3_compileoption_used()

2012-09-13 Thread Michael Park
Hey Guys, I didn't a ticket for this one anywhere, so forgive me if it's already been reported. Trying to use the compile option SQLITE_RTREE_INT_ONLY with SQLITE_ENABLE_RTREE and sqlite3_compileoption_used() won't acknowledge that it's set. I did a quick check in the source and it seems li

[sqlite] Send me your corrupted databases

2012-09-13 Thread Marco Bambini
Hello, can you please send me your corrupted database files? (or put somewhere where I can download them). I am finishing a new sqlite utility and I would like to test it with a lot of different databases. Thanks a lot! -- Marco Bambini http://www.sqlabs.com _