Is it possible to configure HSQLDB so that files with db information are written to memory instead of using real files? I want to use hsqldb to export some data structures along with sleep mappings. However, it is not possible to write temporary files, so I need to generate the files in memory and return the stream with their contents as an answer.
Configuring hsqldb to use nio does not seem to be a solution, because there is no way to get these files before they are written to the file system.
What I think is the protocol handler for hsqldb, but has not yet found a suitable solution.
Just to describe in other words: a hack solution was to pass hsqldb to a thread or to multiple threads. Then, during his work, he recorded data in these streams. After all the data has been written, the db user can then use these streams to send over the network.
source
share