Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9314451
094.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
735 B
Subscribers
None
094.sql
View Options
-- SWH DB schema upgrade
-- from_version: 93
-- to_version: 94
-- description: Full text search on content_ctags with pagination
insert
into
dbversion
(
version
,
release
,
description
)
values
(
94
,
now
(),
'Work In Progress'
);
drop
function
swh_content_ctags_search
(
text
);
-- Search within ctags content.
--
create
or
replace
function
swh_content_ctags_search
(
expression
text
,
l
integer
,
o
integer
)
returns
setof
content_ctags_signature
language
sql
as
$$
select
id
,
name
,
kind
,
line
,
lang
from
content_ctags
where
searchable_symbol
@@
to_tsquery
(
expression
)
order
by
id
limit
l
offset
o
;
$$
;
comment
on
function
swh_content_ctags_search
(
text
,
integer
,
integer
)
IS
'Search through ctags'' symbols'
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 12:29 PM (2 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241753
Attached To
rDSTO Storage manager
Event Timeline
Log In to Comment