With SQLite, user defined SQL functions can easily be added using the C api or PHP. But is it also possible using Java or Groovy?
I think, this is a simple way to create custom function,
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection("jdbc:sqlite:");
Function.create(conn, "myFunc", new Function() {
protected void xFunc() {
System.out.println("myFunc called!");
}
});
conn.createStatement().execute("select myFunc();");