Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344950
041.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
542 B
Subscribers
None
041.sql
View Options
-- SWH DB schema upgrade
-- from_version: 40
-- to_version: 41
-- description: Open directory get by id
insert
into
dbversion
(
version
,
release
,
description
)
values
(
41
,
now
(),
'Work In Progress'
);
-- Retrieve information on directory from temporary table
create
or
replace
function
swh_directory_get
()
returns
setof
directory
language
plpgsql
as
$$
begin
return
query
select
d
.
id
,
d
.
dir_entries
,
d
.
file_entries
,
d
.
rev_entries
from
tmp_directory
t
inner
join
directory
d
on
t
.
id
=
d
.
id
;
return
;
end
$$
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 2:56 PM (4 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3245340
Attached To
rDSTO Storage manager
Event Timeline
Log In to Comment