sqlite

Setting up/Inserting into Many-to-Many Database with Python, SQLALchemy, Sqlite

I am learning Python, and as a first project am taking Twitter RSS feeds, parsing the data, and inserting the data into a sqlite database. I have been able to successfully parse each feed entry into a content variable (e.g., "You should buy low..."), a url variable (e.g., [u'http://bit.ly/HbFwL']), and a hashtag list (e.g., #stocks', u'#...

Serialize JavaScript data structures for SQLite

My goal is to serialize JavaScript native datatypes for storage into an SQLite database. I'm doing this within a Firefox extension, and so I have access to the Mozilla platform XPCOM api. Initially I was thinking that the easiest thing to do would be to just store JSON strings. However, if there is a way to serialize native datatypes w...

Core Data Pre-populated sqllite issue, z-metadata

Hi guys, I have this issue with Core Data. I am creating a core-data-based application, for one of the tabs, to populate a UITableViewController. Basically, I have read somewhere that there is an issue with providing a pre-populated sqllite file to be used to load up the data. I created a pre-populated data file and at first had issues w...

How to open a core data database?

Is there any way in which I can view my core data database without having to load it programatically through the code?! ...

python database / sql programming - where to start

What is the best way to use an embedded database, say sqlite in Python: Should be small footprint. I'm only needing few thousands records per table. And just a handful of tables per database. If it's one provided by Python default installation, then great. Must be open-source, available on Windows and Linus. Better if SQL is not wri...

Does file caching make sense when using Sqlite DB + PHP ?

Hi Folks, does it make sense to use an Filecache when using Sqlite as Database ? Lets say the Database and the Cache is one the same Harddisk (no Raid) ? ...

How to store and get datetime value in SQLite.

Hello, My table contains Birthdate field which has datatype as datetime. I want to get all records having birthday today. How can I get it? ...

[SQLite3] Get Product Onhand Quantity

Using sqlite3, I have two tables: products, orders. I want to know how many products are left in the shop. SELECT pid, txt, price, qty-coalesce((SELECT SUM(qty) FROM ORDERS WHERE pid=?),0) FROM PRODUCTS WHERE pid=? This works if I select 1 product, I would like a li...

SQLite update field with count from another table

Hello, I am trying prepare a table before exporting to CSV however the Sqlite administrator software I am using is reporting invalid syntax. Anybody see whats gone wrong? UPDATE 'tblTags' SET 'tagUsageCount' = (SELECT COUNT(*) FROM 'tblTagLinks' WHERE 'tblTagLinks'.'TLTagId' = 'tblTags'.'tagId') ...

QSqlQuery with International chars does not return a result

I have a Sqlite database that has ClipArt tags in, we are translating that database to Swedish however my database query now does not return a result if the characters are non-English British. For example, fisk == fish and that works perfectly, however öst == east but that fails. I am constructing the query in a QString from a QLineEdi...

How do I reference the Sqlite db file in the App_Data folder for my ASP.NET Web Application?

I'm currently storing my sqlite db file in the App_Data folder as per ASP.NET best pattern and practices. Currently I'm using the following in the webconfig: <connectionStrings> <add name="sqlite" connectionString="Data Source=|DataDirectory|MyDB; Version=3;" /> </connectionStrings> and the following in code: ...

SQLite behaviour on INSERT on iPhone

I'm currently doing the following as part of my iPhone application NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsPath = [paths objectAtIndex:0]; NSString *filePath = [documentsPath stringByAppendingPathComponent:@"cities.sqlite"]; sqlite3 *database; if(sqlite3_open...

"Binding" to a TreeView?

I'm trying to build the server/network settings system for my IRC client. Because of the relational nature of the networks and servers I opted to use SQLite to store everything. My first step is making the settings dialog, which is like you might expect; a TreeView that holds the networks and server, and a space on the side to edit thei...

Populating Tcl Treeview with Sqlite Data

Hello: I am building a Tcl application that reads off of a Sqlite Db. Currently, I can enter data into the database using the Tcl frontend. Now, I am trying to figure out how to display the data within the Sqlite Db from the Tcl frontend. After a little bit of research, I found that the treeview widget would work well for my needs. ...

IronRuby ActiveRecord and SQLite

I see that the IronRuby team has documented using ActiveRecord in IronRuby with MSSQL - they indicate that some adjustments were required to the adapter. In interview on 8/11/2009, Jimmy indicates a major drawback of IronRuby: The main limitation is that IronRuby does not support any of the C-based Ruby libraries That indica...

Qt and Sqlite examples

I am looking for some example code using Qt and it's SQL module with Sqlite driver. Main reason I need examples for is that I've prior experience with Qt's database interface and Sqlite has some weird behavior with field types (types are stored per-field, not per-column). ...

Guidance with SQLite-ruby in IronRuby

What is the approach to get SQLite-ruby working in IronRuby? ...

Does CoreData on iPhone support IN predicates?

I'm trying to fetch a bunch of records of a certain type, based on a list of types defined by the user… [fetchRequest setEntity:[NSEntityDescription entityForName:@"myRecord" inManagedObjectContext:self.managedObjectContext]]; NSSet *shipTypes = [NSSet setWithObjects:[NSNumber numberWithInt:70], [NSNumber numberWithInt:71], [...

Tcl Starkit that Reads of off a Sqlite Database

Hello: I am trying to build a Tcl Application that reads off of a Sqlite database. When I build a starkit for the application and place the Sqlite database file next to the .tcl file within the .vfs folder and try to run the application (.exe), I receive the error, "can't find package sqlite3 while executing package require sqlite3". ...

Recommended Mac GUI data entry tools for populating SQLite databases for iPhone app use?

While making an iPhone app that refers to a (not yet existing) SQLite db Are there any good, cheap programs for data entry? ...