Skip to content

Instantly share code, notes, and snippets.

@uberboom
Last active April 18, 2025 09:21
Show Gist options
  • Save uberboom/aa7df30db9062123b5887ebacd2f6b05 to your computer and use it in GitHub Desktop.
Save uberboom/aa7df30db9062123b5887ebacd2f6b05 to your computer and use it in GitHub Desktop.
Convert Omnivore SQLite database for importing into Raindrop.io
-- Omnivore timestamp is based on 2001-01-01 (978303600)
select
item.ZDOWNLOADURL as url,
null as folder,
item.ZSITENAME as title,
null as note,
GROUP_CONCAT(label.ZNAME, ', ') as tags,
datetime(item.ZCREATEDAT + 978303600, 'unixepoch') AS created
from ZLINKEDITEM item
left join Z_2LABELS rel on item.Z_PK = rel.Z_2LINKEDITEMS
left join ZLINKEDITEMLABEL label ON label.Z_PK = rel.Z_3LABELS1
group by item.Z_PK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment