package granary
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8b18780ea373be48301d9f333925860a2f9110fc0ac28684295118d72b65a67e
sha512=25ca3c9c5e2b528704a542502e0f37dc33ba003f65622d969b8c2b800778585f8ef0cf89b36e6679832e3993e8303aecddfc662742baf7044d6afe4a796b8f11
doc/granary.sql/Granary_sql/Json/index.html
Module Granary_sql.JsonSource
JSON value model and the SQLite json1 scalar functions.
Provides a parsed value tree, text (de)serialisation, type introspection, and the path-based accessors/mutators (path_get, path_set, path_insert, path_replace, path_remove) used to implement the SQL JSON functions.
Parse JSON text into a value, or Error msg on malformed input.
SQL json_type name of a value ("null"/"true"/"integer"/"object"/...).
path_get v p returns the value at JSON path p (e.g. "$.a[0]"), or None if the path does not resolve.
path_set v p x sets the value at path p to x, creating or overwriting as needed (SQL json_set).
path_insert v p x sets path p to x only if it does not already exist (SQL json_insert).
path_replace v p x sets path p to x only if it already exists (SQL json_replace).