if I call db_create with delifexists = TRUE and the db does not exist, I'm getting an error.
library('sofa') # 0.1.8.9400
# db 'foo' doesn't exist
grep("foo", db_list(), value = TRUE)
# character(0)
db_create(cushion = "localhost", dbname = "foo", delifexists = TRUE)
# Error in sofa_DELETE(sprintf("http://127.0.0.1:%s/%s", cushion$port, dbname), :
# Not Found (HTTP 404).
I would like to create the db foo every time I run the script. Right now I have to make the first function call with the default (delifexists = FALSE).
Hello Scott,
if I call
db_create
withdelifexists = TRUE
and the db does not exist, I'm getting an error.I would like to create the db
foo
every time I run the script. Right now I have to make the first function call with the default (delifexists = FALSE
).Best Patrick