For anyone wondering, the solution is this: When c...
# exposed
p
For anyone wondering, the solution is this: When creating the database connection use the
setupConnection
callback like this:
Copy code
Database.connect(
    url = "jdbc:sqlite:./db.sqlite",
    driver = "org.sqlite.JDBC",
    setupConnection = { connection ->
        connection.createStatement().execute("PRAGMA foreign_keys = ON")
    })
Sorry for the spam 🙏
👍 1