If I do a Database.save(doc) (with cblite 2.0 in e.g. Java), will the document be persisted and committed to disk synchronously? i.e. not return until the doc has been physically written to disk?
Is there anywhere in the docs where details like this are described?
All operations are run through the storage engine which is backed by SQLite and it will flush contents to disk for its write operations. This is part of the reason why the use of InBatch is recommended (the sync only needs to happen at the end of the batch and not each individual write)