mirror of
https://github.com/SOCI/soci.git
synced 2025-12-30 01:30:06 -06:00
Don't say that SOCI factory objects are not DLL-exported
This isn't true, even at some time it was claimed that it was (see #606), they are exported and using them does work even when using SOCI as a DLL, provided SOCI_DLL symbol is defined, as it should be. See #1255.
This commit is contained in:
@@ -23,12 +23,6 @@ Above, the `sql` object is a local (automatic) object that encapsulates the conn
|
||||
|
||||
This `session` constructor either connects successfully, or throws an exception.
|
||||
|
||||
### Portability note
|
||||
|
||||
In case of SOCI linked against DLLs on Windows, the factory objects are not exported from the DLLs.
|
||||
In order to avoid linker errors, access factory objects via dedicated backend functions
|
||||
provided (eg. `factory_postgresql()`).
|
||||
|
||||
## Using loadable backends
|
||||
|
||||
Dynamically loadable backends are compiled as shared libraries and allow to select backends at run-time by name.
|
||||
|
||||
Reference in New Issue
Block a user