Non-blocking event-driven database server with role based access control
Non-blocking event-driven database server with role based access control
(create {:keys [port root verbose]
:or {port 8898 root "/var/lib/datalevin" verbose false}})
Create a Datalevin server. Initially not running, call start
to run.
Create a Datalevin server. Initially not running, call `start` to run.
(index-writer-handler f)
Handle request to index writer
Handle request to index writer
Ensure calls within with-transaction-kv
run in the same thread that
runs open-transact-kv
, otherwise LMDB will deadlock
Ensure calls within `with-transaction-kv` run in the same thread that runs `open-transact-kv`, otherwise LMDB will deadlock
(halt-run this)
(new-message this skey message)
(run-calls this)
(start srv)
Start the server
Start the server
(stop srv)
Stop the server
Stop the server
(message-cases skey type)
Message handler function should have the same name as the incoming message type, e.g. '(authentication skey message) for :authentication message type
Message handler function should have the same name as the incoming message type, e.g. '(authentication skey message) for :authentication message type
(normal-dt-store-handler f)
Handle request to Datalog store that needs no copy-in or copy-out
Handle request to Datalog store that needs no copy-in or copy-out
(normal-kv-store-handler f)
Handle request to key-value store that needs no copy-in or copy-out
Handle request to key-value store that needs no copy-in or copy-out
(password-hashing password salt)
(password-hashing
password
salt
{:keys [ops-limit mem-limit out-length parallelism]
:or {ops-limit 4 mem-limit 131072 out-length 32 parallelism 1}})
hashing password using argon2id algorithm, see https://github.com/p-h-c/phc-winner-argon2
hashing password using argon2id algorithm, see https://github.com/p-h-c/phc-winner-argon2
(search-handler f)
Handle request to search engine
Handle request to search engine
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close