airpal
airpal copied to clipboard
Support sqlite and postgresql
The underlying JDBI library already supports these.
Sorry for the delay in responding! Have you tried just changing the configuration to see if it works? You would probably also have to include the jar on the classpath, but other than that I suspect it would just work.
I think there's an issue in this line of code, with the string "mysql" hard-coded: https://github.com/airbnb/airpal/blob/40fc002d96b98ac683879ea9d3d9197acab46f27/src/main/java/com/airbnb/airpal/modules/AirpalModule.java#L116
Mainly though, I agree, it should (mostly) just work.
-Charles
Ah, good call. I'll add making this configurable to the todo list.
does this fixed?
+1
@andykram do you have any update on this request?
I just merged https://github.com/airbnb/airpal/pull/152 which adds support for h2. PRs to support postgres, sqlite or other DBs are welcome.