From 019bf5b010caa9b546c17add2ddd68d58c58fc10 Mon Sep 17 00:00:00 2001 From: sasha-s Date: Thu, 14 May 2015 15:43:13 -0700 Subject: open read-only databases in read-only mode --- errors.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'errors.go') diff --git a/errors.go b/errors.go index aa504f1..6883786 100644 --- a/errors.go +++ b/errors.go @@ -36,6 +36,10 @@ var ( // ErrTxClosed is returned when committing or rolling back a transaction // that has already been committed or rolled back. ErrTxClosed = errors.New("tx closed") + + // ErrDatabaseReadOnly is returned when a mutating transaction is started on a + // read-only database. + ErrDatabaseReadOnly = errors.New("database is in read-only mode") ) // These errors can occur when putting or deleting a value or a bucket. -- cgit v1.2.3