bd help --doc batch.
Run multiple write operations in a single database transaction.
Commands are read from stdin (one per line) or from a file via -f/—file.
All operations execute inside a single dolt transaction: on any error the
whole batch is rolled back, otherwise it is committed with one DOLT_COMMIT.
This is intended for shell scripts that currently invoke ‘bd’ many times in
a loop, which causes severe write amplification on a dolt sql-server backed
by btrfs+compression. Batching collapses N invocations into one transaction
and one dolt commit.
Grammar (one command per line):
close <id> [reason…]
update <id> <key>=<value> [<key>=<value> …]
create <type> <priority> <title…>
dep add <from-id> <to-id> [type]
dep remove <from-id> <to-id>
#comment (blank lines and ’# …’ comments are ignored)
Supported ‘update’ keys: status, priority, title, assignee
Supported dependency types: see ‘bd dep add —help’ (default: blocks)
Tokens are whitespace-separated. Double-quoted strings (“like this”) may
contain spaces; use ” to embed a quote and \ for a backslash.
Examples:
CLI Reference
bd batch
Run multiple write operations in a single database transaction
Generated from
Flags: