e.metridoc.metridoc-ezproxy-plugin.0.17.source-code.ezproxy.changelog-01.xml Maven / Gradle / Ivy
generate ezproxy-specific database objects
select distinct `e`.`patron_id` AS `patron_id`,`d`.`data_file_id` AS
`data_file_id`,`e`.`line_num` AS `line_num` from `ezproxy_loading` `e` join `data_file` `d` where
((`e`.`source_file` = `d`.`data_file_name`) and (length(`e`.`patron_id`) > 1))
select distinct `e`.`patron_id` AS `patron_id`,`p`.`org` AS `org`,`p`.`rank`
AS `rank`,`r`.`rank_id` AS `rank_id`,`r`.`weight` AS `weight` from `patron` `p` join `ezproxy_patron` `e`
join `rank` `r` where ((`p`.`id` = `e`.`patron_id`) and (`p`.`rank` = `r`.`rank_code`)) order by
`e`.`patron_id`
create view ezproxy_session as select resource_id, substr(resource, position('proxySessionID' in
resource)+15, 8) as proxy_session_id from resource where resource regexp 'proxySessionID=[0-9]{8}';