sqlite

[sqlite/C++] Saving to disk an in-memory database

I made a database through sqlite in c++. The db has been created in memory (using the ":memory:" parameter insted of a filename), in order to have a very quick behavior. The database is created by the following lines: sqlite3* mem_database; if((SQLITE_OK == sqlite3_open(":memory:", &mem_database)){ // The db has been correctly cr...

Using SQLite with Classic ASP

I am building a "quick little" app which needs a small database. I want to use Classic ASP (i.e. not ASP.NET), and I am wondering about SQLite for the database. It is possible to use SQLite from Classic ASP? How do I open / create / use a SQLite database from ASP? Any help / pointers gratefully recieved! ...

Which embedded database has maximum SQL compliance, and concurrency support?

My application at present uses Microsoft Access, but now may be hosted on Linux boxes. Additionally while being accessed from multiple computers, one of these may update the records (when its being read by other users). I also require that the embedded database should support complex SQL queries - like inner SQL, Joins, etc. I tried SQ...

SQLite for joined tables

How would I convert the following statement from MySQL-ese to SQLite-ese? UPDATE Attribute, Name SET Attribute.AttValue = 'foobar' WHERE Attribute.NameID = Name.NameID AND Name.Name = 'rotate_ccw' It looks like SQLite doesn't support joins in an UPDATE statement. ...

SQLite Update Syntax?

I think is is simple, but I'm not getting it. I have a table with this data id , name , description 1 , apple , '' 2 , orange , '' I am trying to pass the following statement to update the row so the description column is 'desc of apple' and 'desc of orange' but it is not working. Update TestTable Set description = 'desc of ' + name...

iPhone SQLite3 problem - "No such column"

When I run the following query in an iPhone app @"select name, identifier, score, delta from startups order by name ASC" I get the following error in my logs: sqlite error: no such column: score However, running pragma table_info(startups) in my sqlite3 database yields the following: sqlite> pragma table_info(startups); 0|id|INTEG...

How to install pysqlite?

Hi all, I am trying to install pysqlite (Python interface to the SQLite). I downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I did the following: gunzip pysqlite-2.5.5.tar.gz tar xvf pysqlite-2.5.5.tar \cd pysqlite-2.5.5 python setup.py install At the last step I have a problem. I get the following error message: er...

Can I test for the existence of a table in a SQLite database?

Is there a way to test for the existence of a table in a SQLite database? Right now, I'm creating the table inside a try catch block, and if that throws an exception I know the table has been created. Surely there has to be a better way, right? ...

SQLite3: programatically determine whether a column is sorted in ascending or descending order

Suppose I have an index on a table in SQLite3: CREATE TABLE Person (id integer primary key, firstName varchar(20), lastName varchar(20), address varchar(200)); CREATE INDEX IX_Person ON Person (lastName ASC, firstName ASC); I can discover which columns are in the index like this: sqlite> pragma index_info('ix_person'); 0|2|lastName 1...

How can I analyse a Sqlite query execution?

I have a Sqlite database which I want to check the indexes are correct. MS SQL Analyser is great at breaking down the query execution and utilised indexes. Is there a similar tool for Sqlite? ...

How to build sqlite for Python 2.4?

I would like to use pysqlite interface between Python and sdlite database. I have already Python and SQLite on my computer. But I have troubles with installation of pysqlite. During the installation I get the following error message: error: command 'gcc' failed with exit status 1 As far as I understood the problems appears because ...

ASP and SQLite database connection

Im working with ASP and a SQLite database trying to connect and retreive records from the database. I can't seem to get the connection to work correctly and keep getting script errors when I open the ASP file in a browser. Can anyone give me example code which will connect to an SQLite database and run an SQL query on it that is able to...

couldn't open database

i have my c# application in c:\program files\app\ folder i am using sqllite database my code working perfectly while logging via windows administrative user, if i change window user account to limited, i couldn't open my database public void OpenDB() { SQConnectionString = "Data Source=" + DBPath +";Pooling=true;FailIfMissing=false"...

Why pysqlite does not work properly?

I tried to install pysqlite. Some suspicious things start to appear during the installation. Why I typed: python setup.py build I got the following message in the end: src/module.c:286: error: ‘SQLITE_PRAGMA’ undeclared here (not in a function) src/module.c:287: error: ‘SQLITE_READ’ undeclared here (not in a function) src/module.c:28...

Do I need multiple cursor objects to loop over a recordset and update at the same time?

So I've got a large database that I can't hold in memory at once. I've got to loop over every item in a table, process it, and put the processed data into another column in the table. While I'm looping over my cursor, if I try to run an update statement it truncates the recordset (I believe because it's re-purposing the cursor object)....

Which is better caching data with a file or a sqlite database?

I am caching data in an application I am currently writing and was wondering which would be better to use a regular text file or a sqlite database to hold the cached data? Thanks. EDIT: I am using Zend_Cache so relationships are handled without the need of database. What I am caching is xml strings if saved as regular files can be as b...

Server side SQLite database with Google Web Toolkit or JQuery

Hi all, I have a large array of vehicle make and model data that I want to dynamically display on a web page. For example, when you select a vehicle make from a drop down menu the vehicle model dropdown is dynamically populated with an asynchronous call. I would normally execute this with an AJAX call to a PHP script that would return ...

How to make wordpress mu work with sqlite

Does this plugin works with wpmu? If not, what are alternatives for wpmu? ...

Getting error as sigabart error on iPhone with the compiled statement.

I am preparing sqlite statement and while preparing this statement my code is breaking.I am using following line of code if (sqlite3_prepare_v2(database,getCC , -1, &getConsumptionCount, NULL) != SQLITE_OK) { NSAssert1(0, @"Error: failed to prepare for getConsumptionCount statement with message '%s'.", sqlite3_errmsg(database)); ...

How should I handle software packages?

I am trying to install pysqlite and have troubles with that. I found out that the most probable reason of that is missing sqlite headers and I have to install them. My platform: CentOS release 5.3 (Final). I have Python-2.6.2. I also found out that I need .rpm files. As far as I have them I execute: rpm -i sqlite3-devel-3.n.n.n.rpm a...