开发者

populating in memory hsqldb database from script

开发者 https://www.devze.com 2023-01-03 08:44 出处:网络
Is there a way that I can specify a script in the connection string pointing to my in memory hsqldb instance?

Is there a way that I can specify a script in the connection string pointing to my in memory hsqldb instance?

I was looking at this article and it looks like it is possible, but I'm not sure how to formulate 开发者_开发问答the string correctly or where to put the script file. Looking at the hsqldb documentation here it doesn't appear to be the case.

What would my options here be for using this from java tests?

This is related to a previous hsqldb question here starting and stopping hsqldb from unit tests


Use a file: database instead of mem:, but include "files_readonly=true" in the properties file. Changes to the database during tests will not be persisted.

0

精彩评论

暂无评论...
验证码 换一张
取 消