:domain
option to new-search-engine
, so multiple search engines can
coexist in the same dir
, each with its own domain, a string. #112update-schema
to allow removal of attributes if they are
not associated with any datoms, #99:db/updated-at
datom, #113datalevin.search-utils
namespace with some utility functions to customize
search, #105 (thx @ngrunwald)visit
KV function to core
name spaceadd-doc
for the same doc refinter-fn
:auto-entity-time?
Datalog DB creation option, so entities can optionally have
:db/created-at
and :db/updated-at
values added and maintained
automatically by the system during transaction, #86doc-count
function returns the number of documents in the search indexdoc-refs
function returns a seq of doc-ref
in the search indexdatalevin.core/copy
function can copy Datalog database directly.doc-indexed?
functionadd-doc
can update existing docopen-kv
function allows LMDB flags, #100visit
function to do arbitrary things upon seeing a
value in a range:instant
handles dates before 1970 correctly, #94. The storage
format of :instant
type has been changed. For existing Datalog DB containing
:db.type/instant
, dumping as a Datalog DB using the old version of dtlv, then
loading the data is required; For existing key-value DB containing :instant
type, specify :instant-pre-06
instead to read the data back in, then write
them out as :instant
to upgrade to the current format.defpodfn
so it works in non-JVM.load-edn
for dtlv, useful for e.g. loading schema from a file, #101defpodfn
macro to define a query function that can be used in babashka pod, #85max-aid
after schema update (thx @den1k)disconnect
message is received, clean up
resources afterwards, so a logically correct number of clients can be obtained
in the next API call on slow machines.create-conn
should override the old, fix #65DTLV_LIB_EXTRACT_DIR
environment variable to allow customization of native
libraries extraction location.org.clojars.huahaiy/datalevin-native
org.clojars.huahaiy/datalevin-native
on clojars, for
depending on Datalevin while compiling GraalVM native image. User
no longer needs to manually compile Datalevin C libraries.db/-search
or db/-datoms
with
cheaper calls to improve remote store access speed.dtlv exec
takes input from stdin when no argument is given.clear
function to clear Datalog dbdatom-eav
, datom-e
, etc.close-db
convenience function to close a Datalog dbdatalevin.core
, so users don't have to understand and require different namespaces in order to use all features.open-lmdb
and close-lmdb
to open-kv
and close-kv
,
lmdb/transact
to lmdb/transact-kv
, so they are consistent, easier to
remember, and distinct from functions in datalevin.core
.dtlv
[(.getTime ?date) ?timestamp]
, [(.after ?date1 ?date2)]
, where the date variables are :db.type/instance
. [#32]:db.type/instant
value as java.util.Date
, not as long
[#30]lmdb/open-lmdb
core/get-conn
schema updatecore/get-conn
and core/with-conn
init-max-eid
for large values as well.:data
type. [#23]core/empty-db
:db/ident
in implicit schemacore/create-conn
, db/empty-db
etc., and put dir
in front, since it is more likely to be specified than
schema
in real use, so users don't have to put nil
for schema
.core/update-schema
false
value as :data
core/schema
and core/update-schema
core/closed?
db/entid
allows 0 as eiddb/-first
instead of (first (db/-datom ..))
, db/-populated?
instead of (not-empty (db/-datoms ..)
, as they do not realize the results hence faster.bits/read-buffer
and bits/put-buffer
lmdb/closed?
, lmdb/clear-dbi
, and lmdb/drop-dbi
core/close
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close