hsqldb

How to write custom functions for in memory HSQL

≡放荡痞女 提交于 2020-01-03 17:17:10
问题 I want to write a simple function in HSQL so that it is backwards compatible with DB2 functions. In theory I should be able to write a custom function in java and hook it into HSQL. Is there any direction/documentation on just that? 回答1: User defined functions are documented in the HSQLDB Guide. See this section for functions written in Java. http://hsqldb.org/doc/2.0/guide/sqlroutines-chapt.html#src_jrt_routines You can also write your functions in SQL, which is documented in the same

Hibernate connection with HSQLDB

本小妞迷上赌 提交于 2020-01-03 04:16:08
问题 I have a problem while setting up my first Hibernate project. I follow the tutorial and get stuck when I launch my code. What happens is that the program get stuck, I believe, when starting the connection with HSQLDB. It does not provide any error message. The verbose output in the console is the following: 172 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final 172 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.6.10.Final 172 [main] INFO

How to access ODB files in Python 2.7

梦想的初衷 提交于 2020-01-02 03:53:26
问题 I want to access an ODB file (made with LibreOffice Base) in Python and extract a table for further use. The ODB contains several tables, one relation design and several forms. Is it possible to achieve this without using any SQL? Edit: Since it seems overcomplicated to parse this format on my own, i'll consider using a proper HSQLDB engine. What python module accesses via HSQL (like sqlite3 for SQLite does)? 回答1: You can consider Python Uno API that comes with OpenOffice. There are several

How to export and restore HSQLDB [closed]

做~自己de王妃 提交于 2020-01-01 04:49:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Does anyone know how to export HSQLDB to .sql file or something on a computer and restore on other computer. 回答1: To get a dump of the hsqldb file using either the embedded or file/server mode. In an sql tools dialog use: SCRIPT 'c:\path\to\db\db_sql.sql'; This will not work with spaces in the path Please see

IOException when I try to start Liferay after migration from HSQL to PostgreSQL

一世执手 提交于 2019-12-31 06:56:25
问题 I converted native lportal DB from Hypersonic to PostgreSQL. Added portal-ext.properties files with my PostgreSQL configurations and added postgresql-42.1.1 to D:\files\liferay-ce-portal-7.0-ga3\tomcat-8.0.32\lib\ext # PostgreSQL # jdbc.default.driverClassName=org.postgresql.Driver jdbc.default.url=jdbc:postgresql://localhost:5432/test jdbc.default.username=postgres jdbc.default.password=root And when I'm starting my liferay it shows me an Exception. But If I remove portal-ext.properties it

Creating a shared HSQLDB database

冷暖自知 提交于 2019-12-30 06:52:30
问题 In-process HSQLDB database are not expected to be opened by others, even for file-based storage. The documentation hints that this is possible: Server Modes, Advanced Topics, but I've not yet found a URL for how to activate this behaviour. Did anyone do this so they can share how to? 回答1: The following works for me: Start a server from your code, which is shown in the org.hsqldb.test.TestBase code in the HSQLDB source code. Something like: Server server = new Server(); server.setDatabaseName

Has HSQLDB some mechanism to save in-memory data to file?

元气小坏坏 提交于 2019-12-30 06:07:55
问题 Has HSQLDB some mechanism for saving in-memory data to file? As I know after the server is shutted down, all in-memory data become unaccessible. So I want to save all in-memory data to file. Unfortunately I can't use BACKUP mechanism, because it can't be applied for in-memory data. 回答1: HSQLDB databases are of different types. The all-in-memory databases do not store the data to disk. These databases have URLs in the form jdbc:hsqldb:mem:<name> . If your database URL is in the form jdbc

Has HSQLDB some mechanism to save in-memory data to file?

雨燕双飞 提交于 2019-12-30 06:07:06
问题 Has HSQLDB some mechanism for saving in-memory data to file? As I know after the server is shutted down, all in-memory data become unaccessible. So I want to save all in-memory data to file. Unfortunately I can't use BACKUP mechanism, because it can't be applied for in-memory data. 回答1: HSQLDB databases are of different types. The all-in-memory databases do not store the data to disk. These databases have URLs in the form jdbc:hsqldb:mem:<name> . If your database URL is in the form jdbc

Using HSQL in-memory database as JPA datasource

a 夏天 提交于 2019-12-30 03:42:27
问题 I have an in-memory data source: java.sql.Connection c = DriverManager.getConnection("jdbc:hsqldb:mem:testdb", "sa", ""); emf = Persistence.createEntityManagerFactory("manager"); But now I'm stuck. I want to use it as a JPA data source in a J2SE application. I've scoured the entire web but all info is related to J2EE. <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http

Which is better H2 or HSQLDB? [closed]

天大地大妈咪最大 提交于 2019-12-29 10:46:52
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . HSQLDB 2.0 is soon to be released. I wonder if it will outperform H2 since, as far as I know, most users prefer H2 than HSQLDB. I am