Active Topics

 


Reply
Thread Tools
Andre Klapper's Avatar
Posts: 1,665 | Thanked: 1,649 times | Joined on Jun 2008 @ Praha, Czech Republic
#1
I know that on the N900 conversations are stored in ~/.rtcom-eventlogger/el.db but I'm wondering how to export and import via the SQLite shell.
(Asking because a friend of mine accidentially deleted her Conversations thread with me and would like to have it back.)

Anybody having an idea?
__________________
maemo.org Bugmaster
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#2
After the initial Events table dump, there are a few problems that can be solved by an awk script. First off, you'll have to generate unique integers that won't conflict with her primary key 'id' field. Secondly, all the 'local' and 'remote' values need to be swapped.

On your n900:

sqlite3 ~/.rtcom-eventlogger/el-v1.db
.mode insert
.output ~/.rtcom-eventlogger/friend.txt
select * from Events where remote_uid == '<friend remote_uid>';
<ctrl-d>
sed -i 's/ table / "Events" /' ~/.rtcom-eventlogger/friend.txt

Apply awk script to friend.txt

On her n900:

sqlite3 ~/.rtcom-eventlogger/el-v1.db
.read friend.txt
<ctrl-d>
killall rtcom-messaging-ui


EDIT: see above in red
__________________
N9: Go white or go home

Last edited by daperl; 2010-10-22 at 19:24.
 

The Following 5 Users Say Thank You to daperl For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#3
Oops, for some reason the insert mode didn't properly dump the table name. See above for the edit.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:40.