SQL Functions
Eidos extends SQLite with several built-in functions to facilitate personal data management and local intelligence. Most of these functions are available in both web and desktop versions.
File System
Section titled “File System”Functions to interact with your local files and project structure.
lsdir(path [, recursive])
Section titled “lsdir(path [, recursive])”A table-valued function (virtual table) that lists files and subdirectories. This mimics the behavior of the standard SQLite fileio extension.
- Parameters:
path: The directory to list. Supports~(home) and@/(mounts).recursive: (Optional)1for recursive search,0for top-level only (default).
- Returned Columns:
name,path,kind,pathname,size,mtime. - Example:
-- List all PDFs in your Documents folder recursivelySELECT * FROM lsdir('~/Documents', 1) WHERE name LIKE '%.pdf';