Currently there is OkHttp caching enabled to cache GitHub API responses. However, I want to extend functionality to cache JSON responses in database like postgres as seen below:
Make use of https://sqldelight.github.io/sqldelight/2.1.0/ library so that the implementation is easily portable.
Define new data base configs in the local.properties and use these for caching along side OkHttp Caching if those new configs are provided. Don't forget to update local_sample.properties that is used as sample.
Make sure after all changes you apply code formatter using ./gradlew formatKotlin and ./gradlew build
All new code should be documented briefly to indicated intention.
Currently there is OkHttp caching enabled to cache GitHub API responses. However, I want to extend functionality to cache JSON responses in database like postgres as seen below:
Make use of https://sqldelight.github.io/sqldelight/2.1.0/ library so that the implementation is easily portable.
Define new data base configs in the
local.propertiesand use these for caching along side OkHttp Caching if those new configs are provided. Don't forget to updatelocal_sample.propertiesthat is used as sample.Make sure after all changes you apply code formatter using
./gradlew formatKotlinand./gradlew buildAll new code should be documented briefly to indicated intention.