probcomp/bayeslite

Add open modes to bayeslite_open

Open

#238 opened on Oct 7, 2015

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Python (915 stars) (63 forks)batch import
help wantedk min/hr

Description

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)

Contributor guide