From 6258dda5f1fdb665b1038e127449bdf986e5de4f Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Mon, 31 Mar 2025 09:34:34 +0300 Subject: [PATCH] core/json: Rename json_path.rs to path.rs --- core/json/jsonb.rs | 4 ++-- core/json/mod.rs | 4 ++-- core/json/{json_path.rs => path.rs} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename core/json/{json_path.rs => path.rs} (100%) diff --git a/core/json/jsonb.rs b/core/json/jsonb.rs index 96e04d641..ee869cee2 100644 --- a/core/json/jsonb.rs +++ b/core/json/jsonb.rs @@ -7,7 +7,7 @@ use std::{ str::{from_utf8, from_utf8_unchecked}, }; -use super::json_path::{JsonPath, PathElement}; +use super::path::{JsonPath, PathElement}; const SIZE_MARKER_8BIT: u8 = 12; const SIZE_MARKER_16BIT: u8 = 13; @@ -3607,7 +3607,7 @@ world""#, #[cfg(test)] mod path_operations_tests { use super::*; - use crate::json::json_path::{JsonPath, PathElement}; + use crate::json::path::{JsonPath, PathElement}; use std::borrow::Cow; // Helper function to create a simple JsonPath diff --git a/core/json/mod.rs b/core/json/mod.rs index d70b7a1a9..50f1366a8 100644 --- a/core/json/mod.rs +++ b/core/json/mod.rs @@ -5,7 +5,7 @@ mod cache; #[cfg(feature = "json")] mod ops; #[cfg(feature = "json")] -mod json_path; +mod path; #[cfg(feature = "json")] mod jsonb; @@ -17,7 +17,7 @@ pub use crate::json::ops::{ jsonb_replace, }; #[cfg(feature = "json")] -use crate::json::json_path::{json_path, JsonPath, PathElement}; +use crate::json::path::{json_path, JsonPath, PathElement}; use crate::types::{OwnedValue, OwnedValueType, Text, TextSubtype}; use crate::vdbe::Register; use crate::{bail_constraint_error, bail_parse_error, LimboError}; diff --git a/core/json/json_path.rs b/core/json/path.rs similarity index 100% rename from core/json/json_path.rs rename to core/json/path.rs