pgx_pg_sys/submodules/
mod.rs

1/*
2Portions Copyright 2019-2021 ZomboDB, LLC.
3Portions Copyright 2021-2022 Technology Concepts & Design, Inc. <support@tcdi.com>
4
5All rights reserved.
6
7Use of this source code is governed by the MIT license that can be found in the LICENSE file.
8*/
9
10pub mod datum;
11#[macro_use]
12pub mod elog;
13pub mod errcodes;
14pub mod ffi;
15pub mod htup;
16pub mod oids;
17pub mod panic;
18pub mod pg_try;
19pub mod polyfill;
20pub(crate) mod thread_check;
21pub mod tupdesc;
22
23pub mod utils;
24
25// Various SqlTranslatable mappings for SQL generation
26mod sql_translatable;
27
28pub use datum::Datum;
29// OnDrop(feature = "pg11"): remove this cfg if all supported versions of Postgres
30// now include NullableDatum.
31#[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14", feature = "pg15"))]
32pub use datum::NullableDatum;
33
34pub use oids::*;
35pub use pg_try::*;
36pub use polyfill::*;
37pub use tupdesc::*;
38pub use utils::*;
39
40#[cfg(target_os = "linux")]
41extern "C" {
42    #[link_name = "__sigsetjmp"]
43    pub(crate) fn sigsetjmp(
44        env: *mut crate::sigjmp_buf,
45        savemask: std::os::raw::c_int,
46    ) -> std::os::raw::c_int;
47}
48
49#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "openbsd"))]
50extern "C" {
51    pub(crate) fn sigsetjmp(
52        env: *mut crate::sigjmp_buf,
53        savemask: std::os::raw::c_int,
54    ) -> std::os::raw::c_int;
55}