https://github.com/saiteja-madha/mule-sqlite
Simple mule 4 application demonstrating CRUD operations on SQLite file
https://github.com/saiteja-madha/mule-sqlite
database database-connector jdbc mulesoft
Last synced: about 2 months ago
JSON representation
Simple mule 4 application demonstrating CRUD operations on SQLite file
- Host: GitHub
- URL: https://github.com/saiteja-madha/mule-sqlite
- Owner: saiteja-madha
- Created: 2020-09-06T13:29:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T08:49:53.000Z (almost 2 years ago)
- Last Synced: 2025-03-06T14:54:50.047Z (about 2 months ago)
- Topics: database, database-connector, jdbc, mulesoft
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
This project demonstrates how to establish a connection with an SQLite file (.db) in Mule 4 and perform various SQL operations# Configuring Global Element
* Add the Database connector as usual, and add the Database config file
* Change the connection type to **Generic Connection**
* Generic Database Connector configuration information
**URL**: jdbc:sqlite:[path to your database file] (Example: jdbc:sqlite:c:/database.db)
**Driver Class Name**: org.sqlite.JDBCFor the sake of simplicity, you can directly add the path to your .db file in the *common.properties* file under resources folder
### General Debugging
#### Symptom:
Getting a "java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database" on execution, but 'Test Connection' is fine.#### Suggestion:
Check if you have a relative path.
Relative paths, they are in theory supported (and a quick google confirms as such) but where they are relative to is clearly different than other resources in the mule container.