SQLite Forum

Detect whether database was opened in shared cache mode
From the documentation I see that function `sqlite3_enable_shared_cache` allows to globally enable or disable _shared cache mode_, and that a user can select _shared cache mode_ on opening a database file either by setting an open flag or the URI parameter `cache` - overriding the global setting.

However, I didn't find a function to query the state of _shared cache mode_, neither the global setting nor whether a database was opened in _shared cache mode_ or not.

Did I overlook anything? Is there a method to find out whether a database file was opened in _shared cache mode_ or not?

Thanks in advance for any hints.