HSQL Create Procedure Syntax doesn't seem to match the documentation

后端 未结 2 1806
你的背包
你的背包 2021-01-14 00:00

I am using HSQL as my in memory test db for running integration tests. In production, I have an oracle 10g database. The idea is to run the db create scripts that I used to

2条回答
  •  星月不相逢
    2021-01-14 00:35

    1. Terminate each of the SQL statements (insert, create, select etc)
        within the script (some_script.sql) with /;
    
    2. Whilst configuring in Spring - add the following:
    
       return new EmbeddedDatabaseBuilder()
        .setType("HSQL")
        .setName("DBNAME")
        .addScript("some_script.sql")
        .setSeparator("/;")
        .build();
    

提交回复
热议问题