Roger Binns
2004-12-01 06:29:53 UTC
The database code is now very well advanced and you can try it out.
Unfortunately I found many issues with pysqlite 2 (which wraps sqlite 3)
but it is an alpha release. The developer has promised a new build
with many things fixed around this weekend.
To get an understanding of how it works, do the following:
- install pysqlite 2
- run database.py
This will create a database using examples/phonebook-index.idx
as input, as well as do various manipulations to ensure the
database code works. You will also see how many SQL statements
are executed. SQLite is fast and it is no big deal. The database
is produced in the file testdb
- run bitpim with the developer console turned on
- opendb("testdb")
This will open the test database
- tables()
This will show all tables in the database
- rows("phonebook")
This shows the rows within the named table
- sql("your sql command here")
Executes raw sql and prints the results (if any)
Still todo on my list are timestamps, getting history for an entry,
generating undo information, and some sort of scavenge operation
(remove old values).
Roger
Unfortunately I found many issues with pysqlite 2 (which wraps sqlite 3)
but it is an alpha release. The developer has promised a new build
with many things fixed around this weekend.
To get an understanding of how it works, do the following:
- install pysqlite 2
- run database.py
This will create a database using examples/phonebook-index.idx
as input, as well as do various manipulations to ensure the
database code works. You will also see how many SQL statements
are executed. SQLite is fast and it is no big deal. The database
is produced in the file testdb
- run bitpim with the developer console turned on
- opendb("testdb")
This will open the test database
- tables()
This will show all tables in the database
- rows("phonebook")
This shows the rows within the named table
- sql("your sql command here")
Executes raw sql and prints the results (if any)
Still todo on my list are timestamps, getting history for an entry,
generating undo information, and some sort of scavenge operation
(remove old values).
Roger