sqlite

Does anyone have an updated version of the SQLite .NET assembly, ie. SQLite 3.6.23.1 + possibly .NET 4.0 support?

I'm at my wits end with the best .NET assembly version of SQLite, the one found at http://sqlite.phxsoftware.com. The only maintainer doesn't seem to have the time to update the library and it generally takes months, if not more, for newer versions to surface. Luckily, he has published the source code, so I'm hoping that someone else h...

Determining when database zip is unpacked

I am fetching a db zip on initial startup of an AIR app (after 1st install), which I then unpack via FZip. After this operation I immediately need to load data from the generated sqlite db, which fails since I seem not able to determine when the zip is completely unpacked and/or the sqlite has been created. Any suggestions? Thx! For c...

sqlite COUNT in flex returning [object Object]

I'm sure this is an easy questions and I'm just doing something stupid but I'm really new to all this code. I'm trying to run a sqlite query in flex to count the total number of records I believe its working fine but I just can't figure out how to display the results - all I get back is [object Object]. private function overviewOne():...

how to download update from iphone app to replace old sqlite database

hi i use sqlite database on my iphone app and i need to update this database from the internet from my server how i can download the new database and delete the old database and recopy the new database to document directory ...

Combine query results from one table with the defaults from another

This is a dumbed down version of the real table data, so may look bit silly. Table 1 (users): id INT username TEXT favourite_food TEXT food_pref_id INT Table 2 (food_preferences): id INT food_type TEXT The logic is as follows: Let's say I have this in my food preference table: 1, 'VEGETARIAN' and this in the users table: 1, '...

Why does SQLite take such a long time to fetch the data?

I have two possible queries, both giving the result set I want. Query one takes about 30ms, but 150ms to fetch the data from the database. SELECT id FROM featurevalues as featval3 WHERE featval3.feature IN (?,?,?,?) AND EXISTS ( SELECT 1 FROM product_to_value, ...

Using SQLLite transactions I/O Error

I currently have a client / server setup where the client sends data to the server and then the server saves the data to a SQLite database file. To do this I am using transactions which works fine in windows 7 when I run around 30 clients (each client sending data back between 5 - 30 seconds). When using the same software in Windows XP,...

Android SQLite: nullColumnHack parameter in insert/replace methods

The Android SDK has some convenience methods for manipulating data with SQLite. However both the insert and replace methods use some nullColumnHack parameter which usage I don't understand. The documentation explains it with the following, but what if a table has multiple columns that allow NULL? I really don't get it :/ SQL doesn't...

Which Database to use for CMS project in ASP.NET - SQLite or SQL server compact?

I am working on a CMS project using ASP.Net 3.5/Visual studio 2008.This is the first week of the project and I am working on the design of the system right now. Needless to say that this is my first project of this scale and I have no idea of what I am doing. The requirements of the project ask for a light but functional CMS, one which...

SQLite table query

Hi I query the table by using this function below public Cursor getTableInfo() throws SQLException { return db.query(TableName, null, null, null, null, null, null); } I got the error "View Root.handleMessage(Message)line:1704". I could insert the data b...

How to add SQLite (SQLite.NET) to my C# project

I followed the instructions in the documentation: Scenario 1: Version Independent (does not use the Global Assembly Cache) This method allows you to drop any new version of the System.Data.SQLite.DLL into your application's folder and use it without any code modifications or recompiling. Add the following code to yo...

Does SQLite handle non-English locales out of the box?

I have noticed that Google Toolbox for Mac replaces several SQLite built-in functions (LOWER/UPPER, LIKE, GLOB) with its own versions that handle string locales better. So, question to everyone who has SQLite experience: have you ever had any problems with non-English locales in SQLite? Does one really have to do something to properly h...

Passing a column name instead of index in sqlite3

The problem code: NSString *query = @"SELECT Name FROM Category"; sqlite3_stmt *statement; if (sqlite3_prepare_v2(database, [query UTF8String], -1, &statement, nil) == SQLITE_OK) { while (sqlite3_step(statement) == SQLITE_ROW) { char *row =(char *)sqlite3_column_text(statement,0); char *rowData = (char *)sqli...

Want to store profiles in Qt, use SQLite or something else?

I want to store some settings for different profiles of what a "task" does. I know in .NET there's a nice ORM is there something like that or an Active Record or whatever? I know writing a bunch of SQL will be fun ...

Where to get Native SQLite driver for use in ruby on rails?

Ran my units tests this morning and I get this message. How do I get and install the native driver on osx? The DL driver for sqlite3-ruby is deprecated and will be removed in a future release. Please update your installation to use the Native driver. ...

I can not retrieve a value from my table

while(sqlite3_step(compiledStatement) == SQLITE_ROW) { // Read the data from the result row NSLog(@"WHILE IS OK"); //// THIS NEXT STATEMENT //// NSString *araci = [[NSString alloc] stringWithUTF8String:(char *) sqlite3_column_text(compiledStatement, 1)];** [deneme addObject:araci]; NSLog(@"Data read...

FileLoadException in vs 2010 xaml designer with SLite 1.0.66

This is in part a continuation of issues encountered in configuring SQLite in a vs 2010 .Net 4.0 environment, originally started in this post. The focus of that post was getting both unit testing and application runtime working, which has been resolved and so marked as answered accordingly. The focus of this post is the exception thrown...

Detect if a table contains a column in Android/sqlite

So I have an app on the market, and with an update I want to add some columns to the database. No problems so far. But I want to detect if the database in use is missing these columns, and add them if this is the case. I need this to be done dynamically and not just after the update to the new version, because the application is supposed...

Is it possible to import .gzip file into sqlite / Could I skip some column while importing ?

I tried to play around with .import but it seems to limited with csv and delimited file. Is it possible to import gzip file ? or at least, pipe from command line ? Also, could I skip some un-wanted column like mysql "LOAD DATA INFILE" ? ...

Efficient SQL to count an occurrence in the latest X rows

For example I have: create table a (i int); Assume there are 10k rows. I want to count 0's in the last 20 rows. Something like: select count(*) from (select i from a limit 20) where i = 0; Is that possible to make it more efficient? Like a single SQL statement or something? PS. DB is SQLite3 if that matters at all... UPDATE PP...