![]() |
2009-04-23
, 21:06
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#2
|
![]() |
2009-04-24
, 08:54
|
Posts: 10 |
Thanked: 0 times |
Joined on Feb 2009
|
#3
|
![]() |
2009-05-06
, 15:45
|
Posts: 243 |
Thanked: 172 times |
Joined on Sep 2007
@ silicon valley
|
#4
|
I am working on a car tracking program (its main purpose is to track expenses on gas, trips, repairs, tire changes etc) and I am considering using SQLite3 db as a source for user data. I would like to hear from some of you who have used SQLite a few tips on how to do that.
First thing is if SQLite is preinstalled on maemo devices or if I should make it a prerequisite.
Then some questions about usage. I would like to know what should I include to use SQLite in my program (if sqlite3.h is ok?)?
Also I would like to know if this kind of behaviour is correct with SQLite.
First open connection to a db stored at fixed position in the filesystem. Then read data from db, add, eventually modify or delete them. Last close connection. This should be workflow of an application. I want to keep it as simple as possible that is why db is going to be stored on fixed position. Also I am going to have just two tables (cars table and events table for each car). I would like to know if data is stored automaticly after each statement so that I do not have to worry about power or other failures. Also I would also appreciate your advice on how to filter through data set fetched after select. Other operations are good for me because they are just the matter of good sql statement, but how do I go through SELECT * FROM table?
This is just for the begining and I am looking forward to hearing from you who are more experienced than me in this field and maybe broaden my horizons
PS: sql language and understanding of a programming concepts are not a problem as I am currently working on my bachelor thesis (see above
PS2: if you think that usage of sqlite is bad decision and know something more suitable (maybe other db like berkeleydb or whole different approach) I would like to here from you too
Have a nice day and thank you very much
Johnnnie