Skip to contents

DuckDB refuses ATTACH ... (READ_ONLY) while a <file>.wal write-ahead log exists ("WAL replay is required"). This opens the file read-write, runs CHECKPOINT, closes it and verifies no .wal remains. Run it on every consortium database before copying it. No other process may have the file open.

Usage

checkpoint_database(db_path)

Arguments

db_path

Path to the DuckDB file.

Value

db_path, invisibly.