Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions pgrx/src/datum/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,29 @@ mod borrow;
mod bytea_type;
mod from;
pub mod geo;
mod inet;
mod internal;
mod into;
mod json;
pub mod numeric;
pub mod numeric_support;
#[deny(unsafe_op_in_unsafe_fn)]
mod range;
mod tuples;
mod unbox;
mod uuid;
mod varlena;

pub use self::uuid::*;
pub use crate::datetime::support as datetime_support;
pub use crate::datetime::*;
pub use crate::json::*;
pub use crate::net::*;
pub use crate::num::support as numeric_support;
pub use crate::num::{AnyNumeric, Numeric, numeric};
pub use crate::uuid::*;
pub use anyarray::*;
pub use anyelement::*;
pub use array::*;
pub use borrow::*;
pub use bytea_type::*;
pub use from::*;
pub use inet::*;
pub use internal::*;
pub use into::*;
pub use json::*;
pub use numeric::{AnyNumeric, Numeric};
pub use range::*;
pub use unbox::*;
pub use varlena::*;
Expand Down
2 changes: 1 addition & 1 deletion pgrx/src/datum/unbox.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::Datum;
use super::uuid::Uuid;
use crate::prelude::*;
use crate::uuid::Uuid;
use crate::varlena::{text_to_rust_str_unchecked, varlena_to_byte_slice};
use crate::{Json, JsonB};
use alloc::ffi::CString;
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions pgrx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ pub mod htup;
pub mod inoutfuncs;
pub mod itemptr;
pub mod iter;
pub mod json;
pub mod layout;
pub mod list;
pub mod lwlock;
Expand All @@ -64,8 +65,10 @@ pub mod memcxt;
pub mod misc;
#[cfg(feature = "cshim")]
pub mod namespace;
pub mod net;
pub mod nodes;
pub mod nullable;
pub mod num;
pub mod palloc;
pub mod pg_catalog;
pub mod pgbox;
Expand All @@ -77,6 +80,7 @@ pub mod spinlock;
pub mod stringinfo;
pub mod trigger_support;
pub mod tupdesc;
pub mod uuid;
pub mod varlena;
pub mod wrappers;
pub mod xid;
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions pgrx/src/num.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//LICENSE Portions Copyright 2019-2021 ZomboDB, LLC.
//LICENSE
//LICENSE Portions Copyright 2021-2023 Technology Concepts & Design, Inc.
//LICENSE
//LICENSE Portions Copyright 2023-2023 PgCentral Foundation, Inc. <contact@pgcentral.org>
//LICENSE
//LICENSE All rights reserved.
//LICENSE
//LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
pub mod numeric;
pub mod support;

pub use numeric::{AnyNumeric, Numeric};
4 changes: 2 additions & 2 deletions pgrx/src/datum/numeric.rs → pgrx/src/num/numeric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use std::cmp::Ordering;
use std::fmt;
use std::iter::Sum;

use crate::datum::numeric_support::convert::{FromPrimitiveFunc, from_primitive_helper};
pub use crate::datum::numeric_support::error::Error;
use crate::num::support::convert::{FromPrimitiveFunc, from_primitive_helper};
pub use crate::num::support::error::Error;
use crate::{direct_function_call, pg_sys};

/// A wrapper around the Postgres SQL `NUMERIC(P, S)` type. Its `Precision` and `Scale` values
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use pgrx_pg_sys::errcodes::PgSqlErrorCode;
use pgrx_pg_sys::panic::CaughtError;

use super::error::Error;
use crate::datum::numeric::make_typmod;
use crate::datum::{AnyNumeric, FromDatum, IntoDatum, Numeric};
use crate::num::numeric::make_typmod;
use crate::{direct_function_call, direct_function_call_as_datum, pg_sys};

#[derive(Copy, Clone, Debug, PartialEq, Eq)]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading