Spanner/src/Database.php
private function commitInSingleUseTransaction(array $mutations, array $options = [])
    {
        $options['mutations'] = $mutations;

        return $this->runTransaction(function (Transaction $t) use ($options) {
            return $t->commit($options);
        }, [
            'singleUse' => true
        ]);
    }
private function commitInSingleUseTransaction(array $mutations, array $options = [])
    {
        $options['mutations'] = $mutations;

        return $this->runTransaction(function (Transaction $t) use ($options) {
            return $t->commit($options);
        }, [
            'singleUse' => true
        ]);
    }
private function commitInSingleUseTransaction ( array $ mutations , array $ options = [ ] ) { $ options [ 'mutations' ] = $ mutations ; return $ this -> runTransaction ( function ( Transaction $ t ) use ( $ options ) { return $ t -> commit ( $ options ) ; } , [ 'singleUse' => true ] ) ; }
Common method to run mutations within a single-use transaction.

@param array $mutations A list of mutations to execute.
@param array $options [optional] Configuration options.
@return Timestamp The commit timestamp.
Common method to run mutations within a single - use transaction .