This few lines lets you view sqlite database files as SQL ".dump" from
the sqlite or sqlite3 program, using the format-alist mechanism.  You
can edit and save, if you trust .dump is round-trip safe on your
database.

There's no auto-mode-alist entries yet, though *.sqlite is one
possibility.  It's used by recent mozilla (under ~/.mozilla) for
bookmarks, history, etc.

The code has a workaround for the write-region-post-annotation-function
problem (the one that turns make-temp-file into kill-buffer), but as
usual I'm not 100% certain of the unibyte/multibyte handling - except it
works for me, at least with underlying file-coding-system-alist set for
raw-text-unix on the file.


Attachment: sqlite-dump.el
Description: application/emacs-lisp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQBLP86vLFMCIV9q3ToRApfnAJ4g8A+CWERPITygR4VlRnhL1A6bDQCeI22Z
xserFJu9D3Rcyz3eBemecwg=
=KPRS
-----END PGP SIGNATURE-----
_______________________________________________
gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to