added links table schema

This commit is contained in:
ndwarshuis 2018-12-28 17:40:28 -05:00
parent 0306b93a5e
commit de281f75ac
1 changed files with 13 additions and 0 deletions

View File

@ -2888,6 +2888,19 @@ FOREIGN KEY (archive_file_path, entry_file_offset)
REFERENCES logbook (archive_file_path, entry_file_offset),
PRIMARY KEY (archive_file_path ASC, entry_file_offset ASC));"
"Schema to build the planning_changes table in the org archive db.")
(defconst nd/org-sqlite-links-schema
"CREATE TABLE links (
archive_file_path TEXT,
headline_file_offset INTEGER,
link_file_offset INTEGER,
link_path TEXT,
link_text TEXT,
link_type TEXT,
FOREIGN KEY (archive_file_path, headline_file_offset)
REFERENCES headlines (archive_file_path, headline_file_offset),
PRIMARY KEY (archive_file_path ASC, link_file_offset ASC));"
"Schema to build the links table in the org archive db.")
#+END_SRC
**** org element functions
These are functions that operate on org-element objects to parse for insertion into the db.