-- @query import_pending_items
-- @db importDrive 1.0
-- @param enumeration_id TEXT
SELECT
    hex(FileSystemID) as itemId,
    FullPath as path,
    Status as status,
    LastUpdateTime as lastUpdateTime
FROM importDrive.EnumerationContents
WHERE EnumerationID = ?enumeration_id
  AND IsDirectory = 0
  AND Status = 0
ORDER BY FullPath
LIMIT 10
