1 2 3 4 5 6 7 8 9 10 11 12 13 14
/** * [Behavior in Threaded Programs](https://www.postgresql.org/docs/current/libpq-threading.html) */ impl Connection { /** * Returns the thread safety status of the libpq library. * * See * [PQisthreadsafe](https://www.postgresql.org/docs/current/libpq-threading.html#LIBPQ-PQISTHREADSAFE). */ pub fn is_thread_safe() -> bool { unsafe { pq_sys::PQisthreadsafe() != 0 } } }