Module json

Module json 

Source
Expand description

JSON and document operations support.

This module provides types for working with JSON columns and document operations across different database backends.

§Supported Features

FeaturePostgreSQLMySQLSQLiteMSSQLMongoDB
JSON column type✅ JSONB✅ JSON✅ JSON✅ Native
JSON path queries✅ @>, ->✅ ->, ->>✅ ->, ->>✅ JSON_VALUE✅ Dot
JSON indexing✅ GIN✅ Gen cols✅ Native
JSON aggregation
Array operations✅ Native

§Example Usage

use prax_query::json::{JsonPath, JsonOp, JsonFilter};

// Path query
let filter = JsonPath::new("metadata")
    .field("role")
    .equals("admin");

// JSON mutation
let update = JsonOp::set("metadata", JsonPath::new("$.settings.theme"), "dark");

Modules§

mongodb
MongoDB document operations.

Structs§

JsonIndex
JSON index definition.
JsonIndexBuilder
Builder for JSON indexes.
JsonPath
A JSON path expression for navigating JSON documents.

Enums§

JsonAgg
JSON aggregation operations.
JsonFilter
A JSON filter operation.
JsonOp
JSON mutation operations.
PathSegment
A segment in a JSON path.