ruby-tdb.git  about / heads / tags
Trivial Database bindings for Ruby
blob 47cb54cae74a28c1b913b7da383690e22b060df5 357 bytes (raw)
$ git show v0.6.0:lib/tdb.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
# -*- encoding: binary -*-
require 'tdb_ext'
class TDB
  autoload :MT, 'tdb/mt'

  # makes the current TDB object thread-safe (DANGEROUS)
  # Do not use this method yet, it has problems
  def threadsafe!
    extend MT
  end

  # will return true when TDB::MT is included in TDB or the TDB
  # object is extended by TDB
  def threadsafe?
    false
  end
end

git clone https://yhbt.net/ruby-tdb.git