From the documentation I gather that a temporary database exists only for the lifetime of a single connection (not long enough), while an in-memory database is actually persistent and creates files (too long).
从我收集的文档中我知道临时数据库仅存在于单个连接的生命周期内(不够长),而内存数据库实际上是持久的并且创建文件(太长)。
How do I create a database that multiple connections can access, but that isn't persistent?
如何创建多个连接可以访问的数据库,但这不是持久性的?
Thanks!
谢谢!
1 个解决方案
#1
0
All HSQLDB databases are accessible from multiple connections.
可以从多个连接访问所有HSQLDB数据库。
An in-process database is accessible from connections in the same JVM, while a server database is also accessible from other processes.
可以从同一JVM中的连接访问进程内数据库,也可以从其他进程访问服务器数据库。
If an in-process database or a server database is created with the jdbc:hsqldb:mem:dbname
connection URL, no files are created and the database is not persistent.
如果使用jdbc:hsqldb:mem:dbname连接URL创建进程内数据库或服务器数据库,则不会创建任何文件,并且数据库不是持久的。
#1
0
All HSQLDB databases are accessible from multiple connections.
可以从多个连接访问所有HSQLDB数据库。
An in-process database is accessible from connections in the same JVM, while a server database is also accessible from other processes.
可以从同一JVM中的连接访问进程内数据库,也可以从其他进程访问服务器数据库。
If an in-process database or a server database is created with the jdbc:hsqldb:mem:dbname
connection URL, no files are created and the database is not persistent.
如果使用jdbc:hsqldb:mem:dbname连接URL创建进程内数据库或服务器数据库,则不会创建任何文件,并且数据库不是持久的。