Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-hive
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl-hive
Commits
ace7d563
Commit
ace7d563
authored
17 years ago
by
Javier Herrero
Browse files
Options
Downloads
Patches
Plain Diff
New remove_by_condition_analysis_url method
parent
ec2f4717
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisCtrlRuleAdaptor.pm
+10
-16
10 additions, 16 deletions
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisCtrlRuleAdaptor.pm
with
10 additions
and
16 deletions
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisCtrlRuleAdaptor.pm
+
10
−
16
View file @
ace7d563
...
...
@@ -117,28 +117,23 @@ sub store {
}
=head2 remove
=head2 remove
_by_condition_analysis_url
Arg[1] : Bio::EnsEMBL::Hive::AnalysisCtrlRule which must be persistent
with a valid dbID.
Usage : $self->remove( $rule );
Function: removes given object from database.
Arg[1] : string condition_analysis_url
Usage : $self->remove_by_condition_analysis_url("ThisAnalysisLogicName");
Function: removes all the control rules for this condition analysis URL
Returns : -
=cut
sub
remove
{
my
(
$self
,
$
rule
)
=
@_
;
sub
remove
_by_condition_analysis_url
{
my
(
$self
,
$
condition_analysis_url
)
=
@_
;
my
$dbID
=
$rule
->
dbID
;
if
(
!
defined
$dbID
)
{
throw
(
"
AnalysisCtrlRuleAdaptor->remove called with non persistent AnalysisCtrlRule
"
);
}
my
$sth
=
$self
->
prepare
("
DELETE FROM analysis_ctrl_rule WHERE ctrled_analysis_id = ?, condition_analysis_url = '?'
");
$sth
->
execute
(
$rule
->
ctrled_analysis_id
,
$rule
->
condition_analysis_url
);
my
$sth
=
$self
->
prepare
("
DELETE FROM analysis_ctrl_rule WHERE condition_analysis_url =?
");
$sth
->
execute
(
$condition_analysis_url
);
}
=head2 create_rule
Arg[1] : condition analysis object (Bio::EnsEMBL::Analysis object)
...
...
@@ -284,4 +279,3 @@ sub _generic_fetch {
1
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment