Created
April 11, 2020 16:03
-
-
Save jkoan/f3bf9d07aca8459808a9216b0b9a0c32 to your computer and use it in GitHub Desktop.
Idea of Navit Sqlite Export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ATTACH DATABASE "/export/export_XYZ.db" as 'export'; -- Must exists priore (DL-Server can handle this) | |
| BEGIN TRANSACTION; | |
| CREATE TABLE export.points AS SELECT * FROM points WHERE ; -- Select can be as complicated as wanted | |
| -- More tables here once defined | |
| END TRANSACTION; | |
| VACUUM "export"; | |
| PRAGMA optimize; | |
| DETACH 'export'; -- Download File Finished |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment