mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
remove atime mtime tracking
It's no longer useful to track atime and mtime at the file level, we care about properties at the node level.
This commit is contained in:
@ -130,9 +130,7 @@ SQL can be either the emacsql vector representation, or a string."
|
|||||||
(defconst org-roam-db--table-schemata
|
(defconst org-roam-db--table-schemata
|
||||||
'((files
|
'((files
|
||||||
[(file :unique :primary-key)
|
[(file :unique :primary-key)
|
||||||
(hash :not-null)
|
(hash :not-null)])
|
||||||
atime
|
|
||||||
mtime])
|
|
||||||
|
|
||||||
(nodes
|
(nodes
|
||||||
[(id :primary-key :not-null)
|
[(id :primary-key :not-null)
|
||||||
@ -231,14 +229,11 @@ If FILE is nil, clear the current buffer."
|
|||||||
"Update the files table for the current buffer.
|
"Update the files table for the current buffer.
|
||||||
If UPDATE-P is non-nil, first remove the file in the database."
|
If UPDATE-P is non-nil, first remove the file in the database."
|
||||||
(let* ((file (buffer-file-name))
|
(let* ((file (buffer-file-name))
|
||||||
(attr (file-attributes file))
|
|
||||||
(atime (file-attribute-access-time attr))
|
|
||||||
(mtime (file-attribute-modification-time attr))
|
|
||||||
(hash (org-roam-db--file-hash)))
|
(hash (org-roam-db--file-hash)))
|
||||||
(org-roam-db-query
|
(org-roam-db-query
|
||||||
[:insert :into files
|
[:insert :into files
|
||||||
:values $v1]
|
:values $v1]
|
||||||
(list (vector file hash atime mtime)))))
|
(list (vector file hash)))))
|
||||||
|
|
||||||
(defun org-roam-db-get-scheduled-time ()
|
(defun org-roam-db-get-scheduled-time ()
|
||||||
"Return the scheduled time at point in ISO8601 format."
|
"Return the scheduled time at point in ISO8601 format."
|
||||||
|
Reference in New Issue
Block a user