sqlite

Sqlite3 using in iPhone.

hi i developed one iPhone application, in it i used sqlite3 for data storage . it is working fine in emulator. i have one doubt that is ,when we install this application in a real iPhone is it working properly with out any additional process.. i mean is there any need to install sqlite3 in iPhone separately ? pls help me .. tha...

Grails + sqlite

Is there any way to use SQLite as a database storage for my Grails app? If I use a SQLite JDBC driver (http://www.zentus.com/sqlitejdbc/), my app fails to start with "Could not determine Hibernate dialect for database name [SQLite]" The only workaround I found was http://d.hatena.ne.jp/torutk/20090711/p3 (it's in Japanese, have it goog...

Cannot insert data into an sqlite3 database using Python.

I can successfully use Python to create a database and run the execute() method to create 2 new tables and specify the column names. However, I cannot insert data into the database. This is the code that I am trying to use to insert the data into the database: #! /usr/bin/env python import sqlite3 companies = ('GOOG', 'AAPL', 'MSFT') ...

ASP.NET based SQLite admin tool.

Does such a thing exist? I'm thinking of a asp.net page I could drop on my server and point at a SQLite file (also on the server) and get most of the functionality I'd get out of a command shell. The simplest things would be a text box where anything submitted in it gets run and any result sets get displayed DataGrid controls. Anything ...

can't see records inserted by django test case

I'm trying to provide integration to my django application from subversion through the post commit hook. I have a django test case (a subclass of unittest.TestCase) that (a) inserts a couple of records into a table, (b) spawns an svn commit, (c) svn commit runs a hook that uses my django model to look up info. I'm using an sqlite3 db. ...

slow sqlite insert using the jdbc drivers in java

I just inserted 1million records into a simple sqlite table with five columns. It took a whooping 18 hours in java using the jdbc drivers! I did the same thing in python2.5 and it took less than a minute. The speed for select queries seem fine. I think this is an issue with the jdbc drivers. Is there a faster driver for sqlite3 in jav...

Crossplatform Sqlite3 Wrapper for C++

Hi, I am looking for a crossplatform Sqlite wrapper for Sqlite3. Any suggestions? Thanks ...

How can I create a tabular report in SQL when the column names are in the database, not the query?

http://www.geocities.com/colinpriley/sql/sqlitepg09.htm has a nice technique for creating a tabular report where the column names for the table can be coded in the query but in my case, the columns should be values from the database. Say I have daily sales figures like: Transaction Date Rep Product Amount 1 July 1 ...

No module named _sqlite3

I am trying to run a Django app on my VPS running Debian 5. When I run a demo app, it comes back with this error: File "/usr/local/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python2.5/site-packages/django/db/backends/sqlite3/base.py", line 30, in <...

is it possible to use sqlite manifest typing features in nhibernate?

Hi, this was posted on hibernate.org forums and nhusers list without much luck, so I thought I would try here. Put simply, suppose I have a class: class A { public virtual object SomeValue { get; set; } } the type of SomeValue is basically in the set of .NET IConvertible types (primitives like bool, byte, char, int16, double, floa...

Read large file into sqlite table in objective-C on iPhone

I have a 2 MB file, not too large, that I'd like to put into an sqlite database so that I can search it. There are about 30K entries that are in CSV format, with six fields per line. My understanding is that sqlite on the iPhone can handle a database of this size. I have taken a few approaches but they have all been slow > 30 s. I've...

How to test content providers on Android

I am trying to test my DB using ProviderTestCase2<T>. I can see the test DB being created. As such I suppose, the tested content provider should use the test DB. But as soon as I try any calls against the MockContentResolver (or the one created with newResolverWithContentProviderFromSql), I get an UnsupportedOperationException. This is d...

Best method to input and validate custom datetime in PHP form

This is a double question in terms of front end usability and PHP DATE_TIME validation. I am working on a site for a client who would like to add the date he finished a project (so the projects can be listed in that order). He will be the only one using the admin interface, so I would like it to be as simple as possible. I am storing t...

Adobe AIR with PHP/MySql or sqllite

What would be a better choice for making a database driven Adobe AIR(Desktop) application? Using PHP+MySql with AIR OR Using SQLite If I choose SQLite, then I cannot reuse my code for an online application. If I choose 1, I have to block few port numbers on User's machine. Also, I am using XAMPP for providing the user with PHP a...

Problem using SUM function with SQLite3 on iPhone

Hi, I am using SQLite3 in my iPhone app to select data from a table (tbresults), do some calculations on the data and display it in my uitableview. The sql command uses the SUM function and my app doesn't seem to like it. The method where I do the select from the table is below but processing seems to fail at the following line. if(s...

Database file is inexplicably locked during SQLite commit

Hello, I'm performing a large number of INSERTS to a SQLite database. I'm using just one thread. I batch the writes to improve performance and have a bit of security in case of a crash. Basically I cache up a bunch of data in memory and then when I deem appropriate, I loop over all of that data and perform the INSERTS. The code for ...

How to quote values for LuaSQL?

LuaSQL, which seems to be the canonical library for most SQL database systems in Lua, doesn't seem to have any facilities for quoting/escaping values in queries. I'm writing an application that uses SQLite as a backend, and I'd love to use an interface like the one specified by Python's DB-API: c.execute('select * from stocks where symb...

can Mysql or sqlite Blob data type store varchar data in it?

Hi All, Can one anyone provide any information on whether can we store normal text data(varchar) in mysql or sqlite Blob data type ...

How to save and view a pdf file through an app on iPhone?

Hi All, I am trying to save a pdf file in SQLite. I think it will be possible by saving the pdf file as blob. And the problem starts here, how to view that file within the iPhone app now? I know it can be done using this code:- @interface PDFViewController : UIViewController { UIWebView *webView; NSURL *pdfUrl; } ...

Tokyo Cabinet vs SQLite3 on iPhone

Hey guys, Has anyone used Tokyo Cabinet on the iPhone? I'm interested to see if there are any real world performance differences between it and SQLite3. Also, SQLite 3 has the expressive power of SQL, does Tokyo Cabinet have any kind of query language? Any input would be greatly appreciated, thanks. ...