SQLite Forum

Hooks invoked when modifications done from another connection?
Login
If when "hooking" the hooker you pass the connection (as in sqlite3*) then the hook is hookering that connection only.

If the hook was "global" (covered more than one connection) then there would be no need to pass the connection to hook to the hooker.

Noe that "connection" and "database" are entirely different things.  You can have a million connections to one database, or one connection that connects to a million databases.

The hooker is hooking the connection, unless of course it is a "global hooker" that does not take a reference to a connection when hookering -- for example sqlite3_auto_extension.