Liking cljdoc? Tell your friends :D

datahike.experimental.unstructured

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.
raw docstring

check-schema-compatibilityclj

(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.
sourceraw docstring

infer-value-schemaclj

(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.
sourceraw docstring

prepare-transactionclj

(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.
sourceraw docstring

process-unstructured-dataclj

(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.
sourceraw docstring

transact-unstructuredclj

(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.
sourceraw docstring

value->typeclj

(value->type v)

Determine the Datahike valueType from a value.

Determine the Datahike valueType from a value.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close