Replies: 1 comment 1 reply
-
@jhelvy That's certainly where I would put it :) I'm fairly certain that Quarto + Shiny uses more or less the same execution model as R Markdown + Shiny, in which case you can think of the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi, we're working on a survey project (surveydown) that uses quarto to render to a shiny app. One question we had was about the preferred approach for managing database connections. When I read about the pool package and the preferred approach for database connections (e.g. this article), the examples are all traditional shiny apps. In them, the database pool is created outside of the
ui
orserver
, like this:What I'm trying to understand is what is the equivalent approach for a quarto shiny document? My guess is that the pool connection should go in the setup code chunk, but I'm not 100% sure. Using the same example, this is how I am assuming it should be set up. Can someone confirm if this is appropriate?
Beta Was this translation helpful? Give feedback.
All reactions