Grails + sqlite [英] Grails + sqlite
问题描述
我发现的唯一解决方法是 http://d.hatena.ne.jp/torutk/20090711/p3 (它是日文版,它有 google翻译如果你想的话),但它没有任何帮助。或者,是否使用SQLite的Web应用程序太可怕了,没有人使用它的想法? :) 编辑:是的,我知道,默认的Grails HSQLDB支持工作得很好,但我的web应用程序是更大系统的一部分它只使用SQLite,所以我们宁愿最终只支持一个数据库,而不是HSQLDB和SQLite。 解决方案
t使用它,但您可能想尝试使用 hibernate-sqlite 中的SQLiteDialect项目。他们甚至会在 readme.txt 向您显示一个示例连接字符串
有一些评论这个线程可能会帮助您获得一些上下文。
Is there any way to use SQLite as a database storage for my Grails app?
If I use a SQLite JDBC driver (http://www.zentus.com/sqlitejdbc/), my app fails to start with "Could not determine Hibernate dialect for database name [SQLite]"
The only workaround I found was http://d.hatena.ne.jp/torutk/20090711/p3 (it's in Japanese, have it google translated if you want), but it does not make any help.
Or, is the idea of using SQLite for web apps so terrible that nobody uses it?:)
EDIT: Yes, I know, the default Grails HSQLDB support works just fine, but my web app is a part of a bigger system which uses solely SQLite, so we would prefer end up supporting only one database instead of both HSQLDB and SQLite.
I haven't used it but you might want to try using the SQLiteDialect from the hibernate-sqlite project. They even show you a sample connection String in their readme.txt
There are some comments in this thread that might help you gain some context.
这篇关于Grails + sqlite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!