probcomp/bayeslite

Add open modes to bayeslite_open

開放

#238 建立於 2015年10月7日

 (4 則留言) (0 個反應) (0 位負責人)Python (63 個分叉)batch import
help wantedk min/hr

倉庫指標

星標
 (915 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

By analogy with standard file open modes. Useful modes include

  • read-only (get a database that exists, but don't save changes back)
  • force the database being opened actually exists (crash if absent)
  • force the database being opened is fresh (crash if exists)
  • overwrite the database being opened with a fresh one (truncate on open if exists)

貢獻者指南