sqlite

SQLite or Blackfish - what should I use with a delphi Application ?

I am thinking about using SQLite It is a self-contained, server less, zero-configuration, transactional SQL database engine and is open source. Will I gain anything by using Blackfish instead of SQLight ? ...

How do I GROUP BY on every given increment of a field value?

I have a Python application. It has an SQLite database, full of data about things that happen, retrieved by a Web scraper from the Web. This data includes time-date groups, as Unix timestamps, in a column reserved for them. I want to retrieve the names of organisations that did things and count how often they did them, but to do this for...

iPhone SQLite File management

I'm developing an application and I'm using SQLite as my database storage. I want to add and update the sqlite database throughout my application duration, so i copied it to the documents directory so i can do all kinds of stuff with my database except only selecting from it. But since I'm developing "time", my database changes frequent...

Will SQLite database really remain intact if the program is forcibly terminated when changing the database?

The SQLite documentation says it is transactional. The explanation in the linked article states that if a C++ program which has the SQLite C++ code statically linked into it is forcibly terminated (for example, TerminateProcess() in WinAPI) or crashes when a write is being performed the database remains intact - either fully updated or ...

MySQL vs SQLite + UNIQUE Indexes

For reasons that are irrelevant to this question I'll need to run several SQLite databases instead of the more common MySQL for some of my projects, I would like to know how SQLite compares to MySQL in terms of speed and performance regarding disk I/O (the database will be hosted in a USB 2.0 pen drive). I've read the Database Speed Com...

Why does sqlite3_bind seem to LOOP?

I'm using a few sqlite3_bind routines (in the iPhone SDK) as shown below to make a single update (INSERT or UPDATE) to a table: sqlite3_bind_text(update_statement, 1, aString, -1, SQLITE_TRANSIENT); sqlite3_bind_int(update_statement, 2, anInteger); sqlite3_bind_int(update_statement, 3, pk); However, upon checki...

SQLITE_DB[4] error (CppSQLite3DB)

I have a SQLite DB with one Table : Folder. when, i try to access it by running this query ("select * from Folder") against the DB, I get an error : SQLITE_DB[4] . I am using the CppSQLite3DB library ( www.codeproject.com/KB/database/CppSQLite.aspx ) . here is my code : #include "CppSQLite.h" try { CString sql; CppSQLite3Quer...

Best SQLite practices on the iPhone

What are some best practices to keep in mind when working extensively with SQLite on the iPhone? Tips/tricks/convenience factors all appreciated. ...

How to get sqlite data based flare visualization (swf) to work in Adobe AIR desktop app?

I've been unsuccessful in trying to find an example how to get a sqlite data based flare visualization (swf) to run in Adobe AIR desktop application. Here is what I have: ProjectA: a flare visualization sample done in FlexBuilder based on a tutorial; ProjectB: a desktop AIR app that is able to retrieve data from sqlite based on a tuto...

Difficulty running concurrent INSERTS on SQLite database in C#

Hello, I'm running a number of threads which each attempt to perform INSERTS to one SQLite database. Each thread creates it's own connection to the DB. They each create a command, open a Transaction perform some INSERTS and then close the transaction. It seems that the second thread to attempt anything gets the following SQLiteExcept...

Way to find out which Compilation Options were used to build SQLite

During my performance tests I found out the the SQLite version which Apple provides on the iPhone 3.0 is significantly faster then my self compiled amalgamation SQLite version. So my question is, is there a way to find out which compilation options Apple did use? Is there a test app which prints out all the default set pragams and sqlit...

Is SQLite.Net thread-safe?

I'm asking about the .Net implementation - System.Data.SQLite. Are there guidelines to using it in a thread-safe manner? I know SQLite itself can be compiled with or without thread safety - but how was System.Data.SQLite compiled? ...

is there an SQLite-based wiki?

I would like to find out if there is wiki software that runs on SQLite. ...

sqllite3 prepare insert query in iphone programming

(BOOL) addticket { NSString *event=@"max"; NSString *venue=@"tvm"; sqlite3 *database; databaseName = @"smbhDB.sql"; sqlite3_stmt *addStatement ; NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDir = [documentPaths objectAtIndex:0]; ...

Create SQL queries for SQLite with MFC primitives

I'm using SQLite to store my program's state. sqlite3_exec() accepts the SQL query as a string. So I have a lot of code that builds such queries by concatenating numerous CString instances and a feeling that I'm doing something wrong. Is there a better way of doing this staying within primitives provided within SQLite and MFC? ...

any formal benchmarking of Open source Database software ?

Hi, Is there any formal performance and stress test reports of open source database, specially sqlite,MySQL an PgSQL? I want to use sqlite in server for its simple structure and easy embeddable capability. But I can not find any pros and cons (by Googling and Yahoo!ing) regarding performance of these database software. Please suggest....

SQLite reports on iPhone SDK

What is the preferred method of creating simple reports on the iPhone-SDK platform? I'm thinking that ideally I could create PDFs and display them, is this feasible? Are there some built-in facilities, some available libraries? ...

Is it possible to format a date with sqlite3 ?

At start you have a string 'DDMMYYYY HHMMSS' and I want at the end to insert the string in a date field in sqlite3 database. The program is made in python. How can I do that ? ...

When is sqlite's manifest typing useful?

sqlite uses something that the authors call "Manifest Typing", which basically means that sqlite is dynamically typed: You can store a varchar value in a "int" column if you want to. This is an interesting design decision, but whenever I've used sqlite, I've used it like a standard RDMS and treated the types as if they were static. Inde...

How to make a dynamic array with different values in Python

I have rows in file like : 20040701 0 20040701 0 1 52.965366 61.777687 57.540783 I want to put that in a dynamic array if it's possible ? Something like try: clients = [ (107, "Ella", "Fitzgerald"), (108, "Louis", "Armstrong"), (109, "Miles", "Davis") ] cur.executeman...