Module: TinyDS

Defined in:
lib/tiny_ds/base_tx.rb,
lib/tiny_ds.rb,
lib/tiny_ds/base.rb,
lib/tiny_ds/query.rb,
lib/tiny_ds/low_ds.rb,
lib/tiny_ds/version.rb,
lib/tiny_ds/validations.rb,
lib/tiny_ds/property_definition.rb

Overview

memo デプロイ時に未完了のトランザクションがあってトランザクション定義がかわったら?version???

Defined Under Namespace

Modules: LowDS Classes: Base, BaseTx, PropertyDefinition, Query, RecordInvalid

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Class Method Summary collapse

Class Method Details

.tx(retries = 0, &block) ⇒ Object



12
13
14
15
16
# File 'lib/tiny_ds.rb', line 12

def self.tx(retries=0, &block)
  AppEngine::Datastore.transaction(retries){
    yield(block)
  }
end