shinymanager icon indicating copy to clipboard operation
shinymanager copied to clipboard

Use shinymanager with SQL database server instead of SQLite database file

Open skad00sh opened this issue 4 years ago • 4 comments

I started using shinymanager a few months ago. I mostly used to publish the apps on Shinyapps.io. Since SQLite database is a file and located directly where R scripts are located. Hence I had no issues while connecting to the database.

Now, I have switched to Azure and using docker images. Now, I want to use SQL server to store all credentials, logs, etc. I tried to edit the shinymanager functions but I am not able to use my SQL server.

Can we have a functionality where I will pass the only connection to the database as a parameter and shinymanager will do the everything what it was doing with SQLite (but now with my SQL server).

skad00sh avatar Jan 04 '21 07:01 skad00sh

Not sure about Azure but in my case I am using DBI package to query a data table with users data in adherence to what shinymanager expects of columns. I use PostgreSQL but the concept is generalisable I reckon.

rtrad89 avatar Mar 22 '21 13:03 rtrad89

Even I did the same. But some logics were difficult to implement. I derived my own logic based on existing shinymanager logic. So in my opinion it is doable but will require extensive documentation and fixed clouds. It may not be now but could be possible in near future. fingers-crossed

skad00sh avatar Mar 22 '21 14:03 skad00sh

I second this. Having functionality to use shinymanager with an already existing, non-file database would be a great asset.

FreyGeospatial avatar Nov 15 '21 20:11 FreyGeospatial

I also second this request. I have a dockerized R Shiny app deployed with Azure and have currently mounted the shinymanager SQLite database to the app from an Azure storage account. This method only allows you to read the SQLite database, to edit the credentials in admin mode I update the database outside of the hosted app, then sync the updated database to Azure storage. Being able to have read & write from the hosted app itself through an SQL server such as Azure SQL would be extremely helpful! Thanks for your work on shinymanager!

ZekeMarshall avatar Jun 29 '22 07:06 ZekeMarshall

#180

Available on 1.0.500

bthieurmel avatar Oct 31 '23 10:10 bthieurmel