# sqlite3_open_dll

Definition: | include pSQLite.e bool res = sqlite3_open_dll(string dll_name="")
Description: | Optional. Normally pSQLite.e attempts to open the dll from the application or Phix\demo\pSQLite\ directory, and terminates fatally on error. Use this function to override that behaviour, for instance if you are distributing a dll with a pre-compiled application, especially when in a subdirectory or with renamed 32/64-bit copies, or when testing/comparing different versions. You can give a different error message, or even try automatically downloading one (using curl_easy_get_file() or similar) and retry. Obviously leaving dll_name as "" tests whether it can open the standard file/directory as mentioned above. Note that if a dll has already been successfully opened, this will simply return true, and in that case it also completely ignores anything specified in dll_name. Likewise you can only open one dll per run, so when testing/comparing different versions, the test program would need to be shut down and restarted between each, though of course you could always use system_exec() and ipc or similar to automate things and collect data from several different runs of a sub-program. Returns true on success, false otherwise.
pwa/p2js: | Not supported