An open API service indexing awesome lists of open source software.

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

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.JDBC

For 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.