Liking cljdoc? Tell your friends :D
Clojure only.

datahike.pg.main

Standalone CLI entrypoint for pg-datahike — bundled into the uberjar produced by clojure -T:build uber so a single java -jar pg-datahike.jar brings up a PostgreSQL-wire server backed by Datahike, with no Clojure setup or library dependencies on the client side.

Usage: java -jar pg-datahike-VERSION-standalone.jar [OPTIONS]

Options: --port N TCP port (default 5432) --host ADDR Bind address (default 127.0.0.1) --data-dir DIR Storage location for file-backed dbs (default $PG_DATAHIKE_DATA_DIR or ~/.local/share/pg-datahike) --memory Use in-memory backend (no persistence; overrides --data-dir for the template) --db NAME Pre-create / pin a database named NAME. Repeatable. Defaults to a single 'datahike' if no --db is given. --no-create-database Disable SQL CREATE/DROP DATABASE (clients see 0A000 feature_not_supported). Default: enabled. --history Keep transaction history in pre-created databases. Default: off (5x storage hit). --help Show this and exit --version Print version and exit

Examples: java -jar pg-datahike.jar # 5432 / 127.0.0.1 / file-backed at ~/.local/share/pg-datahike # one database 'datahike'; CREATE DATABASE works.

java -jar pg-datahike.jar --memory --db prod --db staging # Two pre-created in-memory databases.

java -jar pg-datahike.jar --port 15432 --data-dir /var/lib/dh
--db app # File-backed in /var/lib/dh, single db 'app'.

Standalone CLI entrypoint for pg-datahike — bundled into the uberjar
produced by `clojure -T:build uber` so a single
`java -jar pg-datahike.jar` brings up a PostgreSQL-wire server backed
by Datahike, with no Clojure setup or library dependencies on the
client side.

Usage:
  java -jar pg-datahike-VERSION-standalone.jar [OPTIONS]

Options:
  --port N             TCP port              (default 5432)
  --host ADDR          Bind address          (default 127.0.0.1)
  --data-dir DIR       Storage location for file-backed dbs
                       (default \$PG_DATAHIKE_DATA_DIR or
                        ~/.local/share/pg-datahike)
  --memory             Use in-memory backend (no persistence; overrides
                       --data-dir for the template)
  --db NAME            Pre-create / pin a database named NAME.
                       Repeatable. Defaults to a single 'datahike' if
                       no --db is given.
  --no-create-database Disable SQL CREATE/DROP DATABASE (clients see
                       0A000 feature_not_supported). Default: enabled.
  --history            Keep transaction history in pre-created
                       databases. Default: off (5x storage hit).
  --help               Show this and exit
  --version            Print version and exit

Examples:
  java -jar pg-datahike.jar
     # 5432 / 127.0.0.1 / file-backed at ~/.local/share/pg-datahike
     # one database 'datahike'; CREATE DATABASE works.

  java -jar pg-datahike.jar --memory --db prod --db staging
     # Two pre-created in-memory databases.

  java -jar pg-datahike.jar --port 15432 --data-dir /var/lib/dh \
                            --db app
     # File-backed in /var/lib/dh, single db 'app'.
raw docstring

-mainclj

(-main & args)

Boot a pg-datahike server from the command line. See ns docstring.

Boot a pg-datahike server from the command line. See ns docstring.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close