简体   繁体   English

Birt Eclipse,通过ODBC连接到SQLite数据库? 我需要特定的JDBC驱动程序供Birt使用吗?

[英]Birt Eclipse, connecting to a SQLite database through ODBC? Do I need a specific JDBC driver for Birt to use?

I have been working on this for a while now and, unfortunately have little previous exposure to Birt as well as JDBC / ODBC. 我已经为此工作了一段时间,但不幸的是,以前很少接触Birt以及JDBC / ODBC。 I've been searching and searching but can't conclusively figure out what I need for Birt to be able to connect to an SQLite database through ODBC. 我一直在搜索,但是无法最终确定Birt能够通过ODBC连接到SQLite数据库所需的内容。

I have setup the SQLit db on my windows machine to use ODBC. 我已经在Windows计算机上设置了SQLit数据库以使用ODBC。 From here, however, I can't figure out, in the Birt Report Designer-> New data source-> JDBC data source what I am supposed to put in in order to access the DB. 但是,从这里,我无法弄清楚在Birt Report Designer中-> New data source-> JDBC data source应该放置什么以便访问数据库。

Do I need a specific driver for this that I need to install to use as the "Driver Class" 我是否需要为此安装特定的驱动程序以用作“驱动程序类”

Is the path to my ODBC / SQLite db the "Driver URL" field? 我的ODBC / SQLite数据库的路径是“驱动程序URL”字段吗?

I would greatly appreciate any advice on this. 我将不胜感激对此的任何建议。

There is a JDBC driver specifically for SQLite, so you don't have to use a bridge. 有一个专门用于SQLite的JDBC驱动程序 ,因此您不必使用网桥。

The URL should be: 网址应为:

jdbc:sqlite:/path/to/my.db

The class is org.sqlite.JDBC . 该类是org.sqlite.JDBC

As the initial answer points out, you can download the SQLite JDBC driver. 最初的答案指出,您可以下载SQLite JDBC驱动程序。 Once downloaded, you need to correctly deploy the JAR into BIRT so the driver will be available in the eclipse designer. 下载后,您需要正确地将JAR部署到BIRT中,以便在Eclipse设计器中可以使用该驱动程序。 Put the JAR in: 将JAR放入:

<BIRT Install>\eclipse\plugins\com.actuate.data.oda.jdbc.drivers_<BIRT VERSION>

Once the JAR is there, re-start Eclipse/BIRT and you should be able to create a SQLite data source pretty easily. 一旦存在JAR,重新启动Eclipse / BIRT,您应该能够轻松地创建SQLite数据源。

Good Luck! 祝好运!

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

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