Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
agrotoxindb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Karim Heriche
agrotoxindb
Commits
67dd5369
Commit
67dd5369
authored
1 year ago
by
Jean-Karim Heriche
Browse files
Options
Downloads
Patches
Plain Diff
Don't try to change database variable @@global.innodb_autoinc_lock_mode.
parent
a6d074eb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
R/ScreenHandle.R
+0
-2
0 additions, 2 deletions
R/ScreenHandle.R
man/Screen.Rd
+9
-1
9 additions, 1 deletion
man/Screen.Rd
man/ScreenHandle.Rd
+4
-1
4 additions, 1 deletion
man/ScreenHandle.Rd
man/Well.Rd
+2
-2
2 additions, 2 deletions
man/Well.Rd
man/WellHandle.Rd
+3
-1
3 additions, 1 deletion
man/WellHandle.Rd
with
18 additions
and
7 deletions
R/ScreenHandle.R
+
0
−
2
View file @
67dd5369
...
...
@@ -115,7 +115,6 @@ ScreenHandle <- R6Class(
if
(
fast.mode
)
{
# Disable integrity checks
result
<-
self
$
dbConnection
$
execute
(
"SET @@session.unique_checks = 0"
)
result
<-
self
$
dbConnection
$
execute
(
"SET @@session.foreign_key_checks = 0"
)
result
<-
self
$
dbConnection
$
execute
(
"SET @@global.innodb_autoinc_lock_mode = 2"
)
}
statement
<-
"INSERT IGNORE INTO Screen (ID, name, description, status, date_started, date_ended)
VALUES (?, ?, ?, ?, ?, ?)"
...
...
@@ -148,7 +147,6 @@ ScreenHandle <- R6Class(
if
(
fast.mode
)
{
# Re-enable integrity checks
result
<-
self
$
dbConnection
$
execute
(
"SET @@session.unique_checks = 1"
)
result
<-
self
$
dbConnection
$
execute
(
"SET @@session.foreign_key_checks = 1"
)
result
<-
self
$
dbConnection
$
execute
(
"SET @@global.innodb_autoinc_lock_mode = 1"
)
}
}
)
...
...
This diff is collapsed.
Click to expand it.
man/Screen.Rd
+
9
−
1
View file @
67dd5369
...
...
@@ -98,9 +98,17 @@ Output summary of the object content
\subsection{Method \code{store()}}{
Store the object into the database
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Screen$store()}\if{html}{\out{</div>}}
\if{html}{\out{<div class="r">}}\preformatted{Screen$store(
fast.mode = FALSE
)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{fast.mode}}{(optional, default: FALSE) Speeds up data loading by
disabling integrity checks}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Screen-clone"></a>}}
...
...
This diff is collapsed.
Click to expand it.
man/ScreenHandle.Rd
+
4
−
1
View file @
67dd5369
...
...
@@ -159,13 +159,16 @@ A string starting with the prefix SCR:
\subsection{Method \code{store()}}{
Store Screen objects in the database
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{ScreenHandle$store(screen.list)}\if{html}{\out{</div>}}
\if{html}{\out{<div class="r">}}\preformatted{ScreenHandle$store(screen.list
, fast.mode = FALSE
)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{screen.list}}{A list of Screen objects}
\item{\code{fast.mode}}{(optional, default: FALSE) Speeds up data loading by
disabling integrity checks}
}
\if{html}{\out{</div>}}
}
...
...
This diff is collapsed.
Click to expand it.
man/Well.Rd
+
2
−
2
View file @
67dd5369
...
...
@@ -37,8 +37,8 @@ and columns by numbers starting with A1 in the top left corner.}
\item{\code{phenotypes}}{List of Phenotype objects}
\item{\code{replicates}}{
L
ist of Well objects from the same screen and having the
same samples and compounds at the same dose.}
\item{\code{replicates}}{
Retrieves a l
ist of Well objects from the same screen and having the
same samples and compounds at the same dose.
Can't be set.
}
}
\if{html}{\out{</div>}}
}
...
...
This diff is collapsed.
Click to expand it.
man/WellHandle.Rd
+
3
−
1
View file @
67dd5369
...
...
@@ -114,13 +114,15 @@ List of Well objects
\subsection{Method \code{get_all_by_compound()}}{
Retrieve all wells where a compound is found
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{WellHandle$get_all_by_compound(compound)}\if{html}{\out{</div>}}
\if{html}{\out{<div class="r">}}\preformatted{WellHandle$get_all_by_compound(compound
, screen = NULL
)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{compound}}{A Compound object}
\item{\code{screen}}{(optional) a Screen object to limit to wells from this screen}
}
\if{html}{\out{</div>}}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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