I created project inside wavemaker and deployed it to eclipse using phonegap.
I need to create SQLite database so I can storage data while there is no network connection on device,so I can sync it after with server database.
I'm unable to create SQLite db inside wavemaker due to communication problem with hibernate (dialect).
My question is am I able and how, to create SQLite db after I deploy project to eclipse?
I have found many topics on this but non of the solutions help.
Why you not use hipersonic db? it's similar to sqlite and it's java native (it's also come bundled with wavemaker, you can choose to store the data in memory or a file)
http://hsqldb.org/
http://dev.wavemaker.com/wiki/bin/Dev/HSQLDB
Related
I'm currently working on a project with some colleagues and a colleague of mine linked a database created in her postgreSQL server to our visual studio project, but we don't know how she can share the database with the rest of us, or how can we modify the database without having it.
We're using postgreSQL 14.
One option is to create your database in a cloud provider such as AWS.
You can take a look at: https://aws.amazon.com/rds/postgresql/
This way all of you will be able to access the database.
I have created a project with MERN stack and want to host it. But as i came to know that netlify.app hosting site doesnt support hosting for database related projects as my project includes mongodb as a backend.
It will be a great help if anyone can suggest where should i host my project which can support mongodb as a backend also. And also any methods to do it that will be great help.
You can use AWS EC2 Linux instance, where you can keep your project and at the same time you can store your data. For the initial phase of your project, you can install MongoDB on the same machine.
I'm developing an application with a postgresql db. Also it stores files in file system and keep their address in the db. I want an open source solution for backing up the app state including database and file storages.
Mandatory requirements:
supports backing up postgresql db when it is running.
support becking up a folder
support compression
Optional requirements:
Can view, create and restore backups in a web console.(Important)
support plugins or custom backup/restore tasks
support other data storages like mysql
support retention
I've seen project like barman or amanda but It seems each one solve some part of the problem.
Should I develop the solution myself?
The application is developed in java, if it matters.
I use Netbeans to develop a project with JSF, JPA and Java database. I can make a back up online by right clicking the database connections under services and excuting CALL SYSCS_UTIL.SYSCS_BACKUP_DATABASE('c:/tem/2005-06-01') command. But how can I restore or create a database from that backup.
Several articles state that to use jdbc:derby:sample;restoreFrom=c:\mybackups\sample in the in the boot time connection URL. What is boot time connection? I tried to use it as the connection string in Netbeans new connection dialog, but that was not successful.
Please tell me how can I restore the backup.
There is a wealth of information about backing up and restoring Derby databases here: http://db.apache.org/derby/docs/10.9/adminguide/cadminhubbkup98797.html
If you're not comfortable using Derby outside of the Netbeans environment, start here: http://db.apache.org/derby/docs/10.9/getstart/
I am using tomcat, Java with GWT. When try to connect to db my applcation spews the following error. the same driver information is perfectly running on stand alone application.
java.sql.SQLException: URL is not in the correct format:
jdbc:timesten:client:dsn=XXXX_cachedb_devc;uid=XXXX;pwd=XXXXX
at
com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(Exceptions.java:103)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24)
at
java.sql.DriverManager.getConnection(DriverManager.java:582)
at
java.sql.DriverManager.getConnection(DriverManager.java:207)
May i know how can i over come this problem.
Looks like either you are trying to deploy to App Engine or somehow how appengine jars are in your runtime classpath.
If you are not planning to deploy your application at Google App Engine, simply remove the app engine SDK jars from your project.
On the other hand, if you want to deploy to app engine, do know that GAE does not yet support connecting to external databases. All you can do is to use in-memory SQL databases like hsqldb. Your connection url then needs to conform to the hsqldb connection url pattern for in-memory databases.