Multiple changes.
- Add build manifests for SourceHut. - Update README destination links. - Fix manifest for prerelease gem. - Reopen env handles when #clear is successful. - Fix #each when there is only one key. - Always use io_vec lengths when creating new strings. - Hook for rdoc generation. - Rename #open to #reopen, don't alias it. - Add a Rollback exception for upcoming transaction block work FossilOrigin-Name: d6ddedc51b0ac67f395d5749aa3e6adbeebdaf2843c6402ace757b0afffc2be9
This commit is contained in:
parent
5ed44e52fa
commit
770a931d77
11 changed files with 108 additions and 33 deletions
|
|
@ -11,8 +11,8 @@ module MDBX
|
|||
|
||||
# The version of this gem.
|
||||
#
|
||||
# Note: the MDBX library version can be found in
|
||||
# the 'LIBRARY_VERSION' constant.
|
||||
# Note: the MDBX library version this gem was built
|
||||
# against can be found in the 'LIBRARY_VERSION' constant.
|
||||
#
|
||||
VERSION = '0.0.1'
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ class MDBX::Database
|
|||
### db[ 'key' ] #=> value
|
||||
### end
|
||||
###
|
||||
### FIXME: options!
|
||||
###
|
||||
def self::open( *args, &block )
|
||||
db = new( *args )
|
||||
|
||||
|
|
@ -53,16 +55,14 @@ class MDBX::Database
|
|||
attr_accessor :deserializer
|
||||
|
||||
|
||||
# Allow for some common nomenclature.
|
||||
alias_method :namespace, :collection
|
||||
alias_method :reopen, :open
|
||||
|
||||
|
||||
### Switch to the top-level collection.
|
||||
###
|
||||
def main
|
||||
return self.collection( nil )
|
||||
end
|
||||
|
||||
# Allow for some common nomenclature.
|
||||
alias_method :namespace, :collection
|
||||
|
||||
end # class MDBX::Database
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue