SQLite Data Connection

  • Last update:  2024-03-15
  • Overview

    Version

    FineBI Version
    Functional Change

    6.0

    /

    Application Scenario

    This document describes how to connect to an SQLite database.

    Preparation

    Version and Driver

    Driver Download
    Driver Name

    FineBI comes with the built-in sqlite-jdbc.jar driver package.

    org.sqlite.JDBC

    URL format: jdbc:sqlite:[PATH_TO_DB_FILES]

    If the built-in driver is accidentally deleted, you can re-download it: SQLite Driver. For details about uploading the driver, see Driver Management.

    Downloading the Driver File

    Before connecting the database, you need to collect the following information.

    T1. The database storage path

    2. The username and password of the database

    Procedure

    1. Log in to FineBI as the admin, choose System Management > Data Connection > Data Connection Management, and click New Data Connection, as shown in the following figure.

    2. Find the icon of the SQLite database.

    3. Enter the username, password, and the data connection URL.

    If the path of the database is C:\Users\86150\Downloads\FRDemo.db, modify the URL to jdbc:sqlite:C:\Users\86150\Downloads\FRDemo.db.

    If the database is in the project, for example, the built-in database in the FineReport project is located on %FineReport_10.0%\webapps\webroot\help, the URL can also be written as a relative path: jdbc:sqlite://${ENV_HOME}/../help/FRDemo.db.

    If the database and the project are located on different servers, you need to share the network path and replace the above path.

    4. Click Test Connection. If the connection is successful, click Save.

    iconNote:
    When a SQLite database is obtaining a connection, if there is no database under the PATH path in the URL, a database will be created automatically under this path. Therefore, the connection may be successful even if there is no SQLite database under the actual PATH path.

    Adding Database Tables to FineBI

    You can add database tables to FineBI by adding database tables or adding SQL datasets.


    Attachment List


    Theme: Data Center
    前の記事
    次の記事
    • いいね
    • 良くない
    • 閲覧しただけ

    フィードバック

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    5s后关闭

    反馈已提交

    网络繁忙