Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
collectr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DREAL Pays de la Loire
Centre de Services de la Donnée
ADL
collectr
Commits
870c41fa
Commit
870c41fa
authored
4 months ago
by
ronan.vignard
Browse files
Options
Downloads
Patches
Plain Diff
Titraille + modification de l'exemple pour modify_column_type()
parent
3738b5f6
No related branches found
No related tags found
1 merge request
!55
Création des tests pour import_shapefile()
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vignettes/database-utils.Rmd
+14
-7
14 additions, 7 deletions
vignettes/database-utils.Rmd
with
14 additions
and
7 deletions
vignettes/database-utils.Rmd
+
14
−
7
View file @
870c41fa
...
@@ -23,7 +23,7 @@ ainsi que la gestion des exemples.
...
@@ -23,7 +23,7 @@ ainsi que la gestion des exemples.
# Ressources pour les tests
# Ressources pour les tests
## C
R
éation
## C
r
éation
d'un schéma dans une base de données PostgreSQL
```{r examples-create_schema}
```{r examples-create_schema}
#| eval: no
#| eval: no
...
@@ -44,7 +44,7 @@ create_schema(host = "localhost",
...
@@ -44,7 +44,7 @@ create_schema(host = "localhost",
#| eval: no
#| eval: no
#' \dontrun{
#' \dontrun{
# Cré
er
une table dummy dans le schéma public de la base
postgres
# Cré
ation d'
une table dummy dans le schéma public de la base
collectr
collectr::create_dummy(host = "localhost",
collectr::create_dummy(host = "localhost",
database = "collectr",
database = "collectr",
schema = "public",
schema = "public",
...
@@ -128,13 +128,20 @@ check_structure_table(database = "si_eau",
...
@@ -128,13 +128,20 @@ check_structure_table(database = "si_eau",
#| eval: no
#| eval: no
#' \dontrun{
#' \dontrun{
# Création d'une table dummy dans le schéma public de la base collectr
create_dummy(host = "localhost",
database = "collectr",
schema = "public",
table = "dummy",
role = "runner")
# Utilisation de la fonction modify_column_type()
# Utilisation de la fonction modify_column_type()
modify_column_type(database = "si_eau",
modify_column_type(host = "localhost",
schema = "nitrates",
database = "collectr",
table = "nitrate_data_analyse_ars_2022",
schema = "public",
column_name = "plv_date ",
table = "dummy",
column_name = "birthdate",
column_type = "date",
column_type = "date",
role = "
admin
")
role = "
runner
")
#' }
#' }
```
```
...
...
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