BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
684 stars 265 forks source link

Store Module: disable implicit write #2292

Closed ChristianGruen closed 5 months ago

ChristianGruen commented 6 months ago

It’s sometimes helpful to prevent the default store from being written to disk at shutdown time. A possible function for that:

store:persistent(
  $value  as xs:boolean
) as empty-sequence()

Another, probably better, option may be a global option (e.g. KEEPSTORE).

ChristianGruen commented 5 months ago

Postponed (store:clear() can be called at startup time).

ChristianGruen commented 5 months ago

Added: https://help.basex.org/main/Options#writestore