I have a WPF application running with VS2010 .Net3.5 using Nhibernate with FluentNHibernate + SQLite, and all works fine.
Now I want to change to use .Net4, but this has turned into a more painful experience then I expected.. When setting up the connection I do this:
var cfg = Fluently.Configure().
Database(SQLiteConfiguration.St...
When I call
myDB = this.openOrCreateDatabase("DatabaseName", MODE_PRIVATE, null);
Where does the database file get created?
I can't find it anywhere. o_O
...
Hey,
I have a cursor, and it got, lets say, 40 rows, I want to hide some rows when the user check a checkbox.
one way is run the query again on the cursor, but it doesn't help me because the condition is done by Java (calculate balance, with many logic).
I need something that will get the current row, and return if it can be show or n...
I can find syntax "charts" on this on the sqlite website, but no examples and my code is crashing. I have other tables with unique constraints on a single column, but I want to add a constraint to the table on two columns. This is what I have that is causing a SQLiteException with the message "syntax error".
CREATE TABLE name (column ...
I'm trying to paste chinese text into terminal but I just get lots of numbers instead. if I quickly paste as soon as terminal loads the paste will work that once but not again? Its utf-8 unicode i'm using.
I dont think its the font as it works in textedit the only place I get the problem is in terminal but I need to use it to make my sq...
how to install pdo sqlite drivers to enable onserver support
...
Hi! I'm having a problem with some sqlite code for an iPhone program in Xcode. I was opening my database like this:
int result = sqlite3_open("stealtown.db", &database);
Which is how they had it in a book I was looking at while I type the program. But then, that way of opening a database it only works when you run in simulator, not on ...
I'm writing an app for Android OS, and I need to store some time values in the SQLite DB. I have been using android.text.format.Time to store the time values in the app, and then inserting the values as millis into the DB as REAL values. On the SDK emulator, everything works perfectly. On the sole phone I've had the opportunity to test m...
Similar to my last question, but I ran into problem lets say I have a simple dictionary like below but its Big, when I try inserting a big dictionary using the methods below I get operational error for the c.execute(schema) for too many columns so what should be my alternate method to populate an sql databases columns? Using the alter ...
Hi,
I want to create a Sqlite Database in Firefox (I can update my Firefox). According to my knowledge Firefox does not give you Sqlite Database access.
Is there any plugin or simple patch which gives Sqlite database simulation in Firefox?
Regards,
Allahbaksh
...
Hi
I'd like to refresh the Listview items. These items are populated from SQLite database. My code is below
public class Weeve extends Activity {
private String[] lv_arr;
protected ListView CView;
private DBAdapter mDbHelper;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mDbH...
I am probably trying to accomplish too much in a single query, but have I an sqlite database with badly formatted recipes. This returns a sorted list of recipes with relevance added:
SELECT *, sum(relevance) FROM (
SELECT *,1 AS relevance FROM recipes WHERE ingredients LIKE '%milk%' UNION ALL
SELECT *,1 AS relevance FROM recipes WHE...
i need to get some data somewhere to put in a timeline. the data strcture is like this:
- Item
- Name
- Year
- ShortInfo (mainly keywords and short texts)
- LongInfo (much text with videos/audios (urls)
a friend of mine told me i should you a plist and get all that stuff in there, but what about a sqlite database? any advice?
...
I have installed SQLite on my UNIX system, and am planning on accessing it from PHP. However, the database is created in the directory I initialize it in, and if a script runs in a different directory a new database is created in the same directory.
Is there an option for SQLite (or the PHP wrappers) to create the databases in one loc...
I'm trying to open an image file in python and add that data to an sqlite table. I created the table using:
"CREATE TABLE "images" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL , "description" VARCHAR, "image" BLOB );"
I am trying to add the image to the db using:
imageFile = open(imageName, 'rb')
b = sqlite3.Binary(imageFile.read...
Lets say I have a table Y with column X.
There is one row of "X" with the string "abcdefg", and another row with "qwerty".
Can I make a SELECT query in sqlite to choose the row which contains the substring "abcd" ?
...
I've recently discovered the awesomeness of SQLite, specifically the .NET wrapper for SQLite at http://sqlite.phxsoftware.com/.
Now, suppose I'm developing software that will be running on multiple machines on the same network. Nothing crazy, probably only 5 or 6 machines. And each of these instances of the software will be accessing an...
I loaded 83 rows from my CSV file, but when I try to update the SQLite database I get 0 rows... I can't figure out what I'm doing wrong.
The program outputs:
Num rows loaded is 83
Num rows updated is 0
The source code is:
public void InsertData(String csvFileName, String tableName)
{
String dir = Path.GetDirectoryName(csvFil...
[sqlite executeQuery:@"UPDATE UserAccess SET Answer ='Positano';"];
NSArray *query2 = [sqlite executeQuery:@"SELECT Answer FROM UserAccess;"];
NSDictionary *dict = [query2 objectAtIndex:0];
NSString *itemValue = [dict objectForKey:@"Answer"];
NSLog(@"%@",itemValue);
It does print Positano at this point ..
But when I just print with...
I found a lot of comparisions here, but not this one;
So, what is best in each one?
...