如何在仅内存模式下运行HSQLDB服务器 [英] How to run a HSQLDB server in memory-only mode

查看:132
本文介绍了如何在仅内存模式下运行HSQLDB服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HSQLDB的文档中有一个命令行语句,用于启动HSQLDB服务器( HSQLDB Doc ).但是有这个"file:mydb"属性,所以我认为它不是在仅内存模式下.

In the documentation of the HSQLDB is a command line statement to start a HSQLDB server (HSQLDB Doc). But there is this "file:mydb" property, so I assume its not in memory-only mode.

如何运行仅内存的HSQLDB服务器?

How do I run a memory-only HSQLDB server?

我跑了以下程序,但一无所获.

I ran the following but get no clue.

java -cp ../lib/hsqldb.jar org.hsqldb.Server -?

推荐答案

使用java -cp .\hsqldb-1.8.0.10.jar org.hsqldb.Server -database.0 mem:aname

在内存模式下,由连接URL指定-因此,如果需要,您可以在同一目录中只有一个server.properties文件,并将连接URL设置为使用mem协议-或者,如果您正在使用在另一个允许您指定连接URL(例如jdbc)的应用程序中的hsqldb,请指定jdbc:hsqldb:mem:aname.

In memory mode is specified by the connection url - so if you want, you can just have a server.properties file in the same directory, and set the connection url to use the mem protocol - or if you are using hsqldb in another application that allows you to specify the connection url such as jdbc, specify jdbc:hsqldb:mem:aname.

这篇关于如何在仅内存模式下运行HSQLDB服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆