doc/development/postgresql_vfs_testdata.sql

Tue, 01 Feb 2022 20:07:42 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 01 Feb 2022 20:07:42 +0100
branch
webdav
changeset 282
cfb588e27198
parent 281
e9dc53661df4
child 283
25e5b771677d
permissions
-rw-r--r--

add support for getstat parameter in pg readdir


do $$
declare
    res_id int;
begin
    insert into Resource (nodename, iscollection) values ('', true);
    res_id := lastval();
   
    insert into Resource(parent_id,  nodename) values
    (res_id, 'file1.txt'),
    (res_id, 'file2.txt'),
    (res_id, 'file3.txt'),
    (res_id, 'file4.txt');
    
    insert into Resource(parent_id,  nodename, iscollection) values
    (res_id, 'dir1', true);
    res_id := lastval();
    
    insert into Resource(parent_id,  nodename, iscollection) values
    (res_id, 'dir2', true);
    res_id := lastval();
    
    insert into Resource(parent_id,  nodename) values
    (res_id, 'd1file1.txt'),
    (res_id, 'd2file1.txt'),
    (res_id, 'd2file2.txt');

end $$;

mercurial