Is it possible to use this to with c3p0 DataSource? #122
Unanswered
Stephenttt
asked this question in
Q&A
Replies: 4 comments
|
I can get SQLiteDataSource working, but c3p0 seem like does not support encrypted sqlite db file. |
0 replies
|
Did you try using the encryption supported config classes? Like SQLiteMCConfig? Also please make sure that no base SQLite is in your project, just our SQLite. |
0 replies
|
Ok it seems you now are using the SQLiteMCChacha20Config which supports encryption. But afterwards, you export the settings to properties and build a new config without encryption. Just use build() on the SQLiteMCChacha20Config WITHOUT toProperties() and use the resulting config class directly. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Hi, i try to open my encrypted sqlite database as an C3P0 DataSource, but dont know to to set the getConnection properties.
Here is my original code to open sqlite as dataSource:

I look into the SQLiteMCChacha20Config.getDefault().withKey().build().toProperty(), and try this

I wonder how i can using SQLiteConfig to setup SQLiteDataSource as an C3P0.DataSource.
Thank you.
All reactions