| Did you know ... | Search Documentation: |
| Predicate db_attach/2 |
db_attach(:File,
+Options)close (close journal after write), flush
(default, flush journal after write) or none (handle as
fully buffered stream).
If File is already attached this operation may change the sync
behaviour.
If the file ends in an incomplete term, e.g., because the disk was full or the process was killed while writing, a warning is printed and the file is truncated to just after the last complete term.