Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite Channel #19

Closed
hupili opened this issue Sep 29, 2012 · 4 comments
Closed

SQLite Channel #19

hupili opened this issue Sep 29, 2012 · 4 comments
Assignees

Comments

@hupili
Copy link
Owner

hupili commented Sep 29, 2012

Enable simple SQLite storage is easy. What we want is a unified schema there. Say can store raw json associate with each status for future retrieval; store common fields in a flat manner, e.g. platform, status_id, time, content, etc.

This depends on the Restructure of status class. Should come after Issue #14.

@ghost ghost assigned hupili Oct 18, 2012
@hupili
Copy link
Owner Author

hupili commented Oct 18, 2012

checkout 3d9743c for a workable version. sqlite3 is prerequisite. Have not developed error-tolerance code when sqlite3 is not present.

@hupili
Copy link
Owner Author

hupili commented Oct 19, 2012

It's now working stable for one day.

@hupili
Copy link
Owner Author

hupili commented Oct 28, 2012

There are encoding problems with SQLite.

For other platforms, the update() method can deal with utf-8 encoded str or unicode. For SQLite, it has problem dealing with utf-8 encoded str.

The workaround is, do this before passing to update():

console_input(text)

This is what we did in snscli.py.

@hupili hupili closed this as completed Mar 24, 2013
@hupili
Copy link
Owner Author

hupili commented Mar 24, 2013

Close to clean issue.

If there is some problem, we can bring it up again.

It can be used to do backup or easily relay messages between multiple instances of snsapi locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant