Skip to content

Conversation

@Muktarsadiq
Copy link

Summary

Adds support for PostgreSQL's jsonb_path_exists and jsonb_path_match functions according to issue #4216 .

Changes

  • Added jsonb_path_exists function to check if a JSON path returns any items
  • Added jsonb_path_match function to evaluate JSON path predicates
  • Added helper types for both functions
  • Added tests for both functions to auto_type.rs

Testing

  • Code compiles with cargo check --no-default-features --features "postgres_backend,serde_json"
  • Functions follow existing patterns in the codebase

@weiznich weiznich requested a review from a team November 4, 2025 19:31
@Muktarsadiq Muktarsadiq force-pushed the add-jsonb-path-functions branch from ce64566 to 3961fe8 Compare November 4, 2025 21:44
/// Return type of [`array_to_string_with_null_string(arr, delim, null_str)`](super::functions::array_to_string_with_null_string())
#[allow(non_camel_case_types)]
#[cfg(feature = "postgres_backend")]
pub type array_to_string_with_null_string<A, D, N> =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure your branch is based on the latest master? These helper types have been removed in master since they are automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants