I am trying to build a web inventory application using a SQLite database hosted in the cloud home directory. I have a database in the home directory and I can query that database while in the code editor but when I publish to a webform the code does not work.
I have replaced my file path with ****** for security. If local database storage is not supported what is the best way for my application to store, update and retrieve data. DataDrop is not the correct solution as I need this data to last more than 30 days.
Hello Ray,
You need to reload Needs["DatabaseLink"] and reopen the connection conn before launching a SQLSelect. Btw use full context to make the DatabaseLinkSQLSelect call. The reason for this is that every time you launch a Form a new cloudkernel is used (check kernel sessionid).
If you do CloudEvaluate[something, Hold] you get back the expression after it was evaluated on the cloud.
do it with your connection / db select in order to debug what is going on.
database connection in the cloud is coming, but in the mean time CloudExpression is a powerful keyvalue storage that is backed by redis.
If a key value store is enough for your application, CloudExpression is what you should use.
@Pieter, I’m not sure what you mean by full context. Do you mean, DatabaseLink`SQLSelect?
@Riccardo, I don’t think a key value store will work as I am looking for more database functionality. If you can give me a quick example how this would work I can try it.
Here is my updated code which still does not work.