Experimental feature for unstructured data input through schema inference. This namespace provides functions to convert unstructured EDN/JSON-like data into Datahike's transaction format with automatic schema generation.
Experimental feature for unstructured data input through schema inference. This namespace provides functions to convert unstructured EDN/JSON-like data into Datahike's transaction format with automatic schema generation.
(check-schema-compatibility db inferred-schema)
Check if the inferred schema is compatible with the database's existing schema. Returns a map with :compatible? and :conflicts.
Check if the inferred schema is compatible with the database's existing schema. Returns a map with :compatible? and :conflicts.
(infer-value-schema attr v)
Create a schema entry for a given attribute and value.
Create a schema entry for a given attribute and value.
(prepare-transaction db data)
Prepare a transaction for unstructured data based on the database configuration. For schema-on-read databases, simply returns the transaction data. For schema-on-write databases, adds necessary schema definitions first.
Prepare a transaction for unstructured data based on the database configuration. For schema-on-read databases, simply returns the transaction data. For schema-on-write databases, adds necessary schema definitions first.
(process-unstructured-data data)
Process unstructured data recursively, converting it to Datahike transactions, while inferring schema. Returns a map with :schema and :tx-data.
Process unstructured data recursively, converting it to Datahike transactions, while inferring schema. Returns a map with :schema and :tx-data.
(transact-unstructured conn data)
Public API for transacting unstructured data. Takes a connection and unstructured data. Automatically determines required schema and applies it before inserting the data.
Public API for transacting unstructured data. Takes a connection and unstructured data. Automatically determines required schema and applies it before inserting the data.
(value->type v)
Determine the Datahike valueType from a value.
Determine the Datahike valueType from a value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close