I have to execute a block of sql script (typically a function) from spring boot application. I can't keep this function inside my postgres database as i want to maintain at application level. I tried to use schema.sql
(from resources folder) and this looks like executing during server startup only.
However i want to call this plsql block everytime when needed through JPA or JDBCTemplate.
Any alternative other than schema.sql
which can execute on-demand?