-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
st_read/st_write returns error with pooled DB connection (dbPool) #756
Comments
Thanks for the feedback. I'm interested in seeing the error from |
> class(my_db)
[1] "Pool" "R6" Looks like we need an Can the |
Thanks @etiennebr and @edzer for your reply! Yes, it does look like Continuing my previous example, this now will work: my_db_checkout <- poolCheckout(my_db)
class(my_db_checkout)
#[1] "PostgreSQLConnection"
#attr(,"package")
#[1] "RPostgreSQL"
# Works
st_read(dsn = my_db_checkout, layer = "nc")
st_write(obj = nc, dsn = my_db_checkout, layer = "nc2")
poolReturn(my_db_checkout) |
We should now be able to read and write Pool objects; pts test. |
I have a Shiny app which accesses a Postgis database with
dbPool
from thepool
package. I used to usest_read_db
with the pooled connection with no issues. Since upgrading tosf_0.6-3
, I get an error when using my pooled database connection. Example below:The
traceback()
forst_read
errorMy
sessionInfo()
I'm not really sure what the error means (something with
rcpp
?)Is there a different way I should be handling pooled objects in
st_read
andst_write
?The text was updated successfully, but these errors were encountered: