sqlite3

Can you upgrade sqlite3 version on your android?

Hi I'm writing an app which uses the Foreign Key Constraints which support was only just brought in for on version 2.2, and my phone is 2.1 Is there any way to upgrade the version of sqlite3 on the htc desire or any other android phone when your application installs? ...

libdbi sqlite3 driver binary file

where can i find libdbi sqllite3 dll file for windows. any help would be appreciated ...

NullPointerException called indirectly by SQLite database?

My Android application crashes when I try to call MyCursorAdapter.bindView. Here is the LogCat log: 08-10 15:22:57.269: ERROR/AndroidRuntime(463): FATAL EXCEPTION: main 08-10 15:22:57.269: ERROR/AndroidRuntime(463): java.lang.NullPointerException 08-10 15:22:57.269: ERROR/AndroidRuntime(463): at com.mohit.gtodo.TasksCursorAdapter.bi...

After a new install, the SQLite3 old version persists (OS X)

I've installed the newer version of SQLite3 (3.7.0.1) on my macbook (OS X 10.5) but 'sqlite3 --version' gives me the older version I had on my system: $ sqlite3 --version 3.4.0 I suppose I was expecting this version to be overwritten but that doesn't seem to be the case. Can anyone clue me in? I'd really appreciate it, right now I'm t...

sqlite3-ruby install error on Ubuntu

I have the following error during sqlite3-ruby install: Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h... no sqlite3.h is missing. Try 'port install sqlite3 +universal' or 'yum install sql...

Copy a file included with an Adobe Air application out of the Application so that it can be modified.

Is it possible to provide an existing SQLite file with an Air installer, and have the Air application copy it out to local storage upon first execution so that it can be modified? Or do I need to take my pre-made db and recreate it on the fly with Air on execution (store all the queries required to create the tables/data in the applicat...

sqlite3 update row syntax

Hi all, From the sqlite3 docs it looks like I should be able to use the following syntax to update a row in a database on my iPhone: NSString *dbFile = [[NSBundle mainBundle] pathForResource:@"database" ofType:@"db"]; sqlite3 *database = NULL; if (sqlite3_open([dbFile UTF8String], sqlite3_exec(database, [sql UTF8String], MyCallba...

How do I run a .sql3 file that I received when pulling my database from Google App Engine?

The Google page on uploading and downloading datastores is pretty useless, but I've gotten this far. Now I need to get the data in the .sql3 into whatever database it was originally stored in. ...

What is the path for Android database files on Ubuntu?[RESOLVED]

I am trying to find the path for the android database files on Ubuntu 10.4, because I want to access with SQLite Browser. Someone can tell? ...

simple question, which part of CoreData hand sql sourced statement ?

Hi how can i use SQL statement in CoreData database ? which part of CoreData hand it ? thanks and how can i fetch only last elements, not all ? ...

Can't rake db:migrate due to sqlite3_busy timeout

I'm running RVM with ruby 1.9.2 and rails 3.0.0rc and when I run rake db:migrate I get Expected argument 0 of type sqlite3 *, but got SWIG::TYPE_p_sqlite3 #<SWIG::TYPE_p_sqlite3:0x00000... in SWIG method 'sqlite3_busy_timeout' Has anyone run into this? And more importantly, has anyone fixed it and how? ...

Why can't I import pg.py ?

import pg Traceback (most recent call last): File "", line 1, in import pg File "C:\EPD\lib\site-packages\pg.py", line 21, in from _pg import * ImportError: DLL load failed: The specified module coul...

how to run sql script file in sqlite3 through objective-C

Hi all, Here is my question, when interacting with Sqlite 3 through terminal, you can execute SQL statements stored in a txt file by executing this command: .read filename Is there a way to do such thing through Obj-C code? i.e. I've got a sqlite3 db file connected in the code, and i'd like to run a script file programmatically. Th...

I want a sqlite query to read xml file ..

Can anyone help me with the sqlite? i want a sqlite query for reading my xml file and then i want a function that will convert my xml file to the sqlite table... please help me with this. thanks, kruti ...

remove_column not removing column or giving any errors in rails

I have a sqlite3 db in a rails app with the following schema ActiveRecord::Schema.define(:version => 20100816231714) do create_table "comments", :force => true do |t| t.string "commenter" t.text "body" t.integer "post_id" t.datetime "created_at" t.datetime "updated_at" end create_table "posts", :force ...

Performing SQLite Queries...

I'm having problems finding examples of sqlite3 queries. The diagrams in the documentation are useless. I want to say... delete from food_post where ip_address=190.17.107.106; I keep getting a syntax error, though. :/ ...

How do I check if a table exists in sqlite3 c++ API?

I'm opening a database file and potentially creating it if it doesn't exist. But for some reason, this doesn't create the table. Any ideas? const char* sql = "CREATE TABLE IF NOT EXISTS blocks(id text primary_key,length numeric)"; sqlite3_stmt *stmt; rc = sqlite3_prepare_v2(db_, create_table_sql, -1, &stmt, NULL); rc = sqlite3_step(s...

Need help in finding a memory leak in copying Sqlite Database to Mutable array.

I seem to be having a 1.19 KB leak somewhere in the following code. opening up the call tree in instruments, I have narrowed down the leaks to the following: 61.8% of the leaks are coming from +[NSString stringWithUTF8String:] 38.1% of the leaks are coming from +[NSNumber numberWithDouble:] -(void) readMinesFromDatabase { NSLog(@...

Database is locked -sqlite3

Hello all, -(void) dropCategories{ if (deleteCategoryStmt == nil) { const char *deleteSql = "delete from tb_category"; if (sqlite3_prepare_v2(database, deleteSql, -1, &deleteCategoryStmt, NULL) != SQLITE_OK) NSAssert1(0,@"Error in preparing drop category statement with '%s'", sqlite...

sqlite3 is not working in my iphone application.

I want to use sqlite3 for my iphone application. But it is not working. Scenario is :- On click event of a button a method should run and retrieve the data from the database. But My sequence of program is not going into if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) { const char *sqlStatement = "select * from r...