diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-08 20:25:37 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-03-08 20:40:48 -0700 |
commit | c551e45a4722f58dc4c19f9d1b80b0b8db3ad039 (patch) | |
tree | 93ac43914f9cd20c8eea13f18105e55026a7ea8d /error.go | |
parent | Rename Transaction to Tx. (diff) | |
download | dedo-c551e45a4722f58dc4c19f9d1b80b0b8db3ad039.tar.gz dedo-c551e45a4722f58dc4c19f9d1b80b0b8db3ad039.tar.xz |
Consolidate Tx and RWTx.
Diffstat (limited to 'error.go')
-rw-r--r-- | error.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ var ( // ErrInvalid is returned when a data file is not a Bolt-formatted database. ErrInvalid = &Error{"Invalid database", nil} - // ErrVersionMismatch is returned when the data file was created with a + // ErrVersionMismatch is returned when the data file was created with a // different version of Bolt. ErrVersionMismatch = &Error{"version mismatch", nil} @@ -16,6 +16,10 @@ var ( // already open. ErrDatabaseOpen = &Error{"database already open", nil} + // ErrTxNotWritable is returned when performing a write operation on a + // read-only transaction. + ErrTxNotWritable = &Error{"tx not writable", nil} + // ErrBucketNotFound is returned when trying to access a bucket that has // not been created yet. ErrBucketNotFound = &Error{"bucket not found", nil} |