Skip to content

Commit b2ce0ce

Browse files
authored
Make partiql_value::parse_ion public (#294)
1 parent 7e54311 commit b2ce0ce

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Adds some benchmarks for parsing, compiling, planning, & evaluation
1313
- Implements `PIVOT` operator in evaluator
1414
- `serde` feature to `partiql-value` and `partiql-logical` with `Serialize` and `Deserialize` traits.
15+
- Adds `Display` for `LogicalPlan`
16+
- Expose `partiql_value::parse_ion` as a public API.
1517

1618
### Fixes
1719

partiql-value/src/ion.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use ion_rs::{Integer, IonReader, IonType, Reader, StreamItem};
33

44
// TODO handle errors more gracefully than `expect`/`unwrap`
55

6-
pub(crate) fn parse_ion(contents: &str) -> Value {
6+
/// For a given `contents` as Ion text produces a PartiQL Value
7+
pub fn parse_ion(contents: &str) -> Value {
78
let mut reader = ion_rs::ReaderBuilder::new()
89
.build(contents)
910
.expect("reading contents");

partiql-value/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rust_decimal::prelude::FromPrimitive;
1313
use rust_decimal::{Decimal as RustDecimal, Decimal};
1414
use unicase::UniCase;
1515

16-
mod ion;
16+
pub mod ion;
1717

1818
#[cfg(feature = "serde")]
1919
use serde::{Deserialize, Serialize};

0 commit comments

Comments
 (0)