Setup Server Components for Survey Application
server_setup.Rd
Setup the server-side components of the survey application by setting up logging and database operations in the parent environment. Creates a new logger instance and attempts to establish database operations, with error handling for database initialization failures.
Arguments
- session
A Shiny session object containing the session token
- db_config
A list containing database configuration with elements:
log_table: Name of the logging table in the database
write_table: Name of the survey table in the database
- app_pool
A database connection pool object from the global environment
- survey_logger
A reference class object for logging functionality
- db_ops
A reference class object for database operations