Calling a java function from a trigger

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling a java function from a trigger

Faria
Hi,

Is it possible to call a java function from a trigger in SQLite? If so, is
there an example showing how to do it?

Thanks,
Faria



--
Sent from: http://sqlite.1065341.n5.nabble.com/
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: Calling a java function from a trigger

Jens Alfke-2


> On Sep 29, 2019, at 5:05 PM, Faria <[hidden email]> wrote:
>
> Is it possible to call a java function from a trigger in SQLite?

Yes, but you'd have to implement a C function that calls the Java function via JNI, then register the C function with SQLite, then call that function in your trigger.

—Jens
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users