S.
03/25/2026, 1:20 PMdb.withTransaction(TransactionAttribute.REQUIRES_NEW) { tx ->
db.runQuery {
QueryDsl.executeScript("SELECT set_config('app.tenant_id', '$tenantId', true);")
}
db.runQuer {...}
}Toshihiro Nakamura
03/26/2026, 11:13 AMexecuteScript can execute any SQL.S.
03/26/2026, 12:17 PMS.
03/26/2026, 12:17 PMdb.withTransaction(TransactionAttribute.REQUIRES_NEW) { tx ->
db.runQuery {
QueryDsl.executeScript("SELECT set_config('app.tenant_id', '$tenantId', true);").andThen(QueryDsl...)
}
}Toshihiro Nakamura
03/26/2026, 12:30 PMS.
03/26/2026, 12:55 PM