るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.013秒)
トップページ > クエリ:transact[x] > クエリ:transaction[x]

別のキーワード

  1. shell transact
  2. filter transact
  3. shell/filter transact
  4. commandprocessor transact
  5. shell/command-processor transact

ライブラリ

クラス

検索結果

PStore#transaction(read_only = false) {|pstore| ... } -> object (24213.0)

トランザクションに入ります。 このブロックの中でのみデータベースの読み書きができます。

...した場合に発生します。

例:

require 'pstore'
db = PStore.new("/tmp/foo")
db.transaction do
p db.roots # => []
ary = db["root"] = [1,2,3,4]
ary[0] = [1,1.5]
end

db.transaction(true) do |pstore|
pstore["root"] = 'aaa' # => ここで例外発生
end...

PStore#in_transaction -> () (12201.0)

トランザクションの中でなければ例外を発生させます。

トランザクションの中でなければ例外を発生させます。