Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8095823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:15:46+00:00 2026-06-05T21:15:46+00:00

Does anyone know a way to register a persistent UDF in SQLite 3 (using

  • 0

Does anyone know a way to register a “persistent” UDF in SQLite 3 (using C or PHP), or something equivalent? I know I can register a UDF as a callback function with the C or PHP API, but that function only lives as long as the application’s handle to the database.

In MySQL, I can achieve this with someting like “CREATE FUNCTION my_udf RETURNS INTEGER SONAME ‘shared_lib_containing_my_udf.so’.

The reason why I need this is that “Application A” should be notified when “Application B” inserts, updates or deletes data, using triggers that call my UDF. The application that manipulates the DB is a PHP web application. So if I can’t make a UDF persistent, I’d have to register the UDF for every web request – and if the application opens more than one connection per web request, I’d even have to register the UDF multiple times per request. This would probably mean having to change the application in many places, which I really want to avoid.

If this isn’t possible, does anyone have a different solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:15:48+00:00Added an answer on June 5, 2026 at 9:15 pm

    The only solution seems to be to modify the SQLite source to add the required functions.. This won’t work in my scenario though because of deployment issues, so I’ll have to abandon SQLite altogether and switch to MySQL or PostgreSQL. I wish SQLite had some kind of plugin mechanism to extend it with custom functions without recompilation, like the way UDFs are implemented in MySQL. That would probably make it considerably less “lite”, though. As much as I love SQLite, it’s just not the right tool for everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a way to register (using code of course) my application
Does anyone know of WPF code examples using Prism in which modules each register
Does anyone know any way that I can use javascript to check when the
Does anyone know a way of disabling compression for a single file using the
does anyone know a way to get php working with jquery append()? say we
Does anyone know a way to get the mean amplitude of a .wav file
Does anyone know a way to get Firefox to crop the corners if the
Does anyone know a way to determine if a Rails association has been eager
Does anyone know of a way to simulate pressing a detail disclosure button?
Does anyone know of a way to copy mail attachments of a particular extention

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.