Concept of In Memory Database and how to see if my data is being populated in HSQL DB?

前端 未结 3 477
自闭症患者
自闭症患者 2021-01-14 10:21

I am using HSQL in memory database for test purpose of my application and using SQL Server as main database, now when am doing test then HSQL Database is being populated wit

3条回答
  •  难免孤独
    2021-01-14 10:49

    The best way to use HSQLDB for development is running a Server instance (which could store data purely in memory). While the server is on, you can connect from multiple clients, including GUI, to test and browse the data.

    The URL form jdbc:hsqldb:hsql://localhost is used to access the server, while the server itself is using jdbc:hsqldb:mem:test as its internal memory database. The server must be started first with a command like this:

    java -cp ../lib/hsqldb.jar org.hsqldb.Server -database.0 mem:test
    

提交回复
热议问题