results schema, write access? #11
vojtechhuser
started this conversation in
General
Replies: 2 comments
-
the sqlite file has table coxib. after I removed (and skipping note_nlp), transfer into postgres worked
|
Beta Was this translation helpful? Give feedback.
0 replies
-
As far as I know SQLite only has two schemas: main and temp. Eunomia allows write access to both so either could be used as a results schema for testing studies. library(Eunomia)
#> Warning: package 'Eunomia' was built under R version 4.0.5
#> Loading required package: DatabaseConnector
#> Warning: package 'DatabaseConnector' was built under R version 4.0.4
connectionDetails <- getEunomiaConnectionDetails()
con <- connect(connectionDetails)
#> Connecting using SQLite driver
dbWriteTable(con, "cars", cars)
result <- dbGetQuery(con, "select * from main.cars")
head(result, 5)
#> speed dist
#> 1 4 2
#> 2 4 10
#> 3 7 4
#> 4 7 22
#> 5 8 16
dbWriteTable(con, DBI::SQL("temp.cars"), cars)
result <- dbGetQuery(con, "select * from temp.cars")
head(result, 5)
#> speed dist
#> 1 4 2
#> 2 4 10
#> 3 7 4
#> 4 7 22
#> 5 8 16
disconnect(con) Created on 2021-04-15 by the reprex package (v0.3.0) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The examples provide how to run sql code.
I was trying to run Achilles.
I assume there is no write access and that is why it fails.
Assuming we need results schema and test HivDescriptive study on Eunomia, we would write it into a real db, right?
When trying that, it works on some tables but fails in terms of timestamp on others..
Beta Was this translation helpful? Give feedback.
All reactions