Skip to content

Sqlite store date as iso format #2279

Discussion options

You must be logged in to vote

When creating the jdbi instance, besides passing the jdbc url, it is also possible to pass some specific sqlite-jdbc parameters like below:

val jdbi = Jdbi.create("jdbc:sqlite:${outputFile.absolutePath}", Properties().apply {
    setProperty("date_class", "text")
    setProperty("date_string_format", "yyyy-MM-dd")
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stevenschlansker
Comment options

Answer selected by marceloverdijk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants