简体   繁体   English

内存中derby 10.7的驱动程序名称

[英]Driver name for derby 10.7 in-memory

Can any one tell the driver name for derby 10.7 in memory mode? 在存储模式下,谁能说出derby 10.7的驱动程序名称? We are using below for in-memory: 我们将以下用于内存中:

org.apache.derby.jdbc.EmbeddedDriver

and below for filesystem based (for previous derby version): 和以下基于文件系统(对于以前的derby版本):

org.apache.derby.jdbc.ClientDriver

I found that for 10.7 , file-system based, driver name should be: 我发现对于10.7(基于文件系统),驱动程序名称应为:

org.hibernate.dialect.DerbyTenSevenDialect

So is there any change for in-memory driver name? 那么内存驱动程序名称是否有变化?

You can access an in-memory database via the embedded driver or the network driver if the in-memory db is exposed to the network. 如果内存数据库暴露在网络中,则可以通过嵌入式驱动程序或网络驱动程序访问内存数据库。 You have to specify the JDBC connection URL correctly though. 但是,您必须正确指定JDBC连接URL。

http://db.apache.org/derby/docs/10.11/devguide/cdevdvlpinmemdb.html http://db.apache.org/derby/docs/10.11/devguide/cdevdvlpinmemdb.html

I don't understand your terminology. 我不明白你的用语。 Derby has two different environments in which it can run: Embedded, and Client/Server. Derby具有两种可以在其中运行的环境:嵌入式和客户端/服务器。 See: http://db.apache.org/derby/docs/10.8/getstart/cgsquck70629.html 请参阅: http : //db.apache.org/derby/docs/10.8/getstart/cgsquck70629.html

The JDBC driver names that you have (EmbeddedDriver and ClientDriver) are correct. 您拥有的JDBC驱动程序名称(EmbeddedDriver和ClientDriver)是正确的。 http://db.apache.org/derby/docs/10.8/getstart/rgsquck35368.html http://db.apache.org/derby/docs/10.8/getstart/rgsquck35368.html

It looks like you are including Hibernate in your application, as DerbyTenSevenDialect is a Hibernate class, not a Derby class. 好像您在应用程序中包括了Hibernate,因为DerbyTenSevenDialect是Hibernate类,而不是Derby类。 You need to consult the Hibernate community and documentation for Hibernate information. 您需要查阅Hibernate社区和文档以获取Hibernate信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM