HSQLDB - which is the main database file

前端 未结 3 1204
难免孤独
难免孤独 2021-02-13 19:53

I am using HSQLDB in the embedded mode.

jdbc:hsqldb:file:abc\\\\TESTDB;

After creating the database, the folder abc has the follow

3条回答
  •  [愿得一人]
    2021-02-13 20:35

    .script contains all the statements to create the tables, alter them and insert the data. This file is created when you use hsqldb in memory. (so I'd say this is your database) Otherwise the database is stored in .data as other people already said

    .lck is the lock file by which hsqldb knows whether the database is locked by a process. Usually you have this file only while your program is running and it is automatically deleted when you stop the programm.

    .log contains internal log statements of running transactions for example and some commit or rollback points.

    .properties contains the properties with which hsqldb is initialized (better don't change anything there if you don't know what you are doing). This is not to be confused with and persistence unit configuration.

    kind regards

提交回复
热议问题