bboltngr

command
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: None detected not legal advice Imports: 0 Imported by: 0

Documentation

Overview

Package main provides a tool to read and write NamedGraphRevisions from/to a bbolt database. The NamedGraphRevisions bucket (key: "ngr") contains versioned NamedGraphs where:

  • key is the Hash key (32 bytes) of the corresponding standalone binary NG-SST file
  • value is the binary NG-SST file content

Usage examples:

# List all NGRs:
bboltngr repo.db list

# Get, process, and put back a single NGR:
bboltngr repo.db process <hash>

# Export all to directory:
bboltngr repo.db export ./backup/

# Import all from directory:
bboltngr repo.db import ./backup/

# Process all NGRs in the database:
bboltngr repo.db process-all

To add your own data handling, modify the processNGRData() function below.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL