HomeGetting StartedInstallation & SetupDevelopment & IntegrationDeployment & OperationsData ManagementTechnical SupportPlatform Updates
DocsDeployment & OperationsAdmin CLI Referencerocks ldb
Reference

stardog-admin rocks ldb

Description

Low-Level Administration and Data Access Tool<br>

Usage

stardog-admin rocks ldb [ --home <home> ] [ -s <encryption passphrase> ] [ {-v | --verbose} ] [--] [ <mArgs>... ]

Options

Name, shorthandDescription
--home <home>Stardog home directory location.
-s <encryption passphrase>passphrase to access encrypted databases
-v, --verboseFlag that can cause more detailed information to be printed such as errors and status. Exact output depends upon the command and options used.
--This option can be used to separate command-line options from the list of argument(s). (Useful when an argument might be mistaken for a command-line option)
<mArgs>Remaining LDB options

Discussion

The ldb command line tool offers multiple data access and database admin commands see https://github.com/facebook/rocksdb/wiki/Administration-and-Data-Access-Tool

Examples

Print detailed help

$ stardog-admin rocks ldb --help

List the column families

$ stardog-admin rocks ldb --home /stardog_home/ list_column_families

Dump the manifest file contents

$ stardog-admin rocks ldb --home /stardog_home/ manifest_dump

Compact the database

$ stardog-admin rocks ldb --home /stardog_home/ compact

Get a key

$ stardog-admin rocks ldb --home /stardog_home/ get <key>