sqlite

How to update an SQLite database with a search and replace query?

My SQL knowledge is very limited, specially about SQLite, although I believe this is will be some sort of generic query... Or maybe not because of the search and replace... I have this music database in SQLite that has various fields of course but the important ones here the "media_item_id" and "content_url". Here's an example of a "co...

sqlite , berkeley db benchmarking

I want to create desktop application in c# for that i want to use embedded database like (sqlite,berkeley db), so how can i start benchmarking for these databases ? ...

sqlite3 and multiple processes...

hello, how should one ensure correctness when multiple processes accesses one single SQLite database file? Show me the code please :-) /tom ...

SQLite: Copy all values from a previous row with one substitution.

Hi y'all, Using SQLite I need to copy nearly all of an existing row from a table, make a change to a single column, and insert the new row into the table. Something roughly like INSERT INTO $tablename (c1, c2, ... , cn) SELECT (c1, c2, ... , cn) FROM $tablenam I tried substituting a some value ci into the the list of SELECT colu...

Retrying an operation after an exception: Please criticize my code.

My Perl application uses resources that become temporarily unavailable at times, causing exceptions using die. Most notably, it accesses SQLite databases that are shared by multiple threads and with other applications using through DBIx::Class. Whenever such an exception occurs, the operation should be retried until a timeout has been re...

Use SQLite's backup API from Python/SQLAlchemy

I'm using an SQLite database from python (with SQLAlchemy). For performance reasons, I'd like to populate an in-memory database in the application, and then back up that database to disk. SQLite has a backup API, which seems would do this transparently. The APSW documentation says that it wraps the backup API, but I'd like to access th...

Fast string matching algorithm with simple wildcards support

I need to match input strings (URLs) against a large set (anywhere from 1k-250k) of string rules with simple wildcard support. Requirements for wildcard support are as follows: Wildcard (*) can only substitute a "part" of a URL. That is fragments of a domain, path, and parameters. For example, "*.part.part/*/part?part=part&part=*". The...

sqlite and visualstudio

How do I set an identity column for sqlite in visual studio? I am performing a new query and am trying to create a new table using script. ...

Can SQLite sort naturally?

Can SQLite sort naturally? For example, CREATE TABLE animals ( id INTEGER NOT NULL PRIMARY KEY, name TEXT NOT NULL ); INSERT INTO animals (name) VALUES ('Monkey'); INSERT INTO animals (name) VALUES ('manatee'); SELECT name FROM animals ORDER BY name; name ---------- Monkey manatee I would prefer the results to be ...

Is anyone using System.Data.SQLite within SharpDevelop?

I was just wondering if perhaps any of you guys has been successful integrating SQLite into a SharpDevelop project? If that's the case it'd be really interesting if you wouldn't mind to go ahead and share the experience with the rest of us. I've tried the more sort of orthodox approach of using Visual Studio 2008 Express Editions and wh...

Export a .sqllite file in C/C++ (on windows)

It is possible to move a .sqllite file somewhere while not corrupting it in C or C++? Somewhere could be another folder or something. If so could you give me some tips/pointers. ...

How optimize sqlite query with dates & substr?

I have some sqlite querys that are slowding my iPhone App. I have 2 pattern that I repeat in my app. The first is with substr: SELECT Id FROM [Table] WHERE UPPER(substr(Name,1,1))='A' ORDER BY Name" (This run for the mayority of the alphabet. Is for a contact list) The other is a complex one with date: SELECT Id,customerCode, case...

How use sqlite + fdbm library with threading on the iPhone

Related to this SO question, I want to put the data loading in the background. However, I get 'library routine called out of sequence' errors. In this SO thread say that the way is using NSOperation, but looking on the samples on the web I not know how that could solve the issue. I share a single sqlite connection with the singleton p...

How do I save/display line breaks properly in a UIWebView for the iPhone?

I have a UIWebView-based iPhone application that reads in HTML from a SQLite database. The user can save new information, entered via a UITextView that accepts carriage returns. How do I display these carriage returns (line breaks) properly in the UIWebView? I have tried using something like this: NSString *HTMLData = [mySQLiteDataObjec...

How to check available Python libraries on Google App Engine & add more

How to check available Python libraries on Google App Engine & add more? Is SQLite available or we must use GQL with their database system only? Thank you in advance. ...

plist or sqlite

I have to store a huge amount of data on IPhone then sort and search it as per requirement. Can anyone suggest to me which of SQLite or plist should I use? I was thinking of using SQLite. Which of plist and SQLite takes less processing time in searching and sorting? If some one has some reference guide then let me know. Regards ...

How can I use and access an SQLite DB using PHP and Wamp Server?

I know PHP 5 already supports SQLite but for some reason I can't get it to work. I followed the instructions from http://www.scriptol.com/sql/sqlite-getting-started.php. I also made sure that the following are not commented out from php.ini: extension=php_pdo_sqlite.dll and extension=php_sqlite.dll. But when I open the PHP file from loc...

Switching databases in TG2 during runtime

I am doing an application which will use multiple sqlite3 databases, prepopuldated with data from an external application. Each database will have the exact same tables, but with different data. I want to be able to switch between these databases according to user input. What is the most elegant way to do that in TurboGears 2? ...

how add limit clause to manageQuery on android

Android's API provides a clean mechanism via SQLite to make queries into the contact list. However, I am not sure how to limit the results: Cursor cur = ((Activity)mCtx).managedQuery( People.CONTENT_URI, columns, "LIMIT ? OFFSET ?", new String[] { Integer.toString(limit), ...

How do I add a column in a sqlite 2 database table

How do I add an additional column to an existing sqlite 2 database table that have data and indexes associated with it. It seems like the alter table SQL for that is not available in sqlite2? ...