Liking cljdoc? Tell your friends :D

datalevin.main

Functions and vars to support the dtlv command line tool

Functions and vars to support the `dtlv` command line tool
raw docstring

-mainclj

(-main & args)
source

copyclj

(copy src-dir dest-dir compact?)

Copy a database. src-dir is the source data directory path. dest-dir is the destination data directory path. Will compact while copying if compact? is true.

Copy a database. `src-dir` is the source data directory path. `dest-dir` is
the destination data directory path. Will compact while copying if
`compact?` is true.
sourceraw docstring

default-root-dirclj

source

dropclj

(drop dir dbis delete)

Drop (when delete is true) or clear (when delete is false) the list of sub-database(s) named by dbis from the database at the data directory path dir.

Drop (when `delete` is true) or clear (when `delete` is false) the list of
sub-database(s) named by `dbis` from the database at the data directory path
`dir`.
sourceraw docstring

dumpclj

(dump src-dir dest-file dbis list? datalog? all?)
(dump src-dir dest-file dbis list? datalog? all? nippy?)

Dump database content. src-dir is the database directory path.

The content will be written to dest-file if given, or to stdout.

If list? is true, will list the names of the sub-databases only, not the content.

If datalog? is true, will dump the whole database as a Datalog store, including the schema and all the datoms.

If all? is true, will dump raw data of all the sub-databases.

If nippy? is true, dump in nippy binary format, dest-file must be given

If dbis is not empty, will dump raw data of only the named sub-databases.

Dump database content. `src-dir` is the database directory path.

The content will be written to `dest-file` if given, or to stdout.

If `list?` is true, will list the names of the sub-databases only, not the
content.

If `datalog?` is true, will dump the whole database as a Datalog store,
including the schema and all the datoms.

If `all?` is true, will dump raw data of all the sub-databases.

If `nippy?` is true, dump in nippy binary format, `dest-file` must be given

If `dbis` is not empty, will dump raw data of only the named sub-databases.
sourceraw docstring

execclj

(exec arguments)

Execuate code that passed in as a seq of strings.

Execuate code that passed in as a seq of strings.
sourceraw docstring

loadclj

(load dir src-file dbi datalog?)
(load dir src-file dbi datalog? nippy?)

Load content into the database at data directory path dir, from src-file if given, or from stdin.

If datalog? is true, the content are schema and datoms, otherwise they are raw data.

If nippy? is true, load a nippy binary file, src-file must be given.

Will load raw data into the named sub-database dbi if given.

Load content into the database at data directory path `dir`,
from `src-file` if given, or from stdin.

If `datalog?` is true, the content are schema and datoms, otherwise they are
raw data.

If `nippy?` is true, load a nippy binary file, `src-file` must be given.

Will load raw data into the named sub-database `dbi` if given. 
sourceraw docstring

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

× close