Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement json_type #631

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Implement json_type #631

merged 1 commit into from
Jan 9, 2025

Conversation

madejejej
Copy link
Contributor

No description provided.

@@ -121,17 +121,13 @@ pub fn json_array_length(
json_value: &OwnedValue,
json_path: Option<&OwnedValue>,
) -> crate::Result<OwnedValue> {
let path = match json_path {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

json_extract_single now accepts an OwnedValue as suggested before in #524 (comment) by @jussisaurio , so handling OwnedValues was moved there. Neither float nor integers are valid JsonPaths anyway.

core/json/mod.rs Outdated Show resolved Hide resolved
@madejejej madejejej marked this pull request as ready for review January 8, 2025 12:23
@penberg penberg closed this in 317acb8 Jan 9, 2025
@penberg penberg merged commit 317acb8 into tursodatabase:main Jan 9, 2025
36 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants