Accessing Websql Database With Qt
I'm making a web app and I need to store some data into a database that can also be accessed with Qt. What I need is to insert values from the web app and the app created with Qt.
I'm storing the info that comes from the web app in a WebSql database with javascript in Linux Mint. I wan't to know if it is possible to access that database file with Qt.
Are there a better alternative to do this without a server-side languages?
Answer
Yes you can access the websql database with Qt. The websql database is just a sqlite database so there is no problem accessing it with Qt.
The tricks are finding the location and name of the file. In Chrome on my Mac, for example, the database is at
~/Library/Application Support/Google/Chrome/Default/Databases/mysite/1
there is a master database of the other databases at
~/Library/Application Support/Google/Chrome/Default/Databases/Databases.db
It is also sqlite and you can read it to find the other databases.
Related Questions
- → How to update data attribute on Ajax complete
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → Octobercms Component Unique id (Twig & Javascript)
- → Passing a JS var from AJAX response to Twig
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → DropzoneJS & Laravel - Output form validation errors
- → Import statement and Babel
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM