Login
q-vfile-status.sql at [0ab8c75c49]
Login

File sql/q-vfile-status.sql artifact b4f00874fa part of check-in 0ab8c75c49


-- provides output similar to fossil(1)'s status command, with the caveat that
-- that that command is the one which updates the vtile table referenced here.
--
-- Requires both a checkout and repo db to be attached.
SELECT
        id,vid, mrid, deleted,
        chnged,
        datetime(mtime,'unixepoch','localtime') as local_time,
        size, uuid, origname, pathname
FROM vfile LEFT JOIN blob ON vfile.mrid=blob.rid
WHERE vid=(SELECT value FROM vvar WHERE name='checkout')
AND chnged
ORDER BY pathname;