Spec-Zone.ru › Dart 2

dart:indexed_db

метод transaction

Transaction transaction(
  1. dynamic storeName_OR_storeNames,
  2. String режим
)

Реализация

Transaction transaction(storeName_OR_storeNames, String mode) {
  if (mode != 'readonly' && mode != 'readwrite') {
    throw new ArgumentError(mode);
  }

  // TODO(sra): Ensure storeName_OR_storeNames is a string or List<String>,
  // and copy to JavaScript array if necessary.

  // Try and create a transaction with a string mode.  Browsers that expect a
  // numeric mode tend to convert the string into a number.  This fails
  // silently, resulting in zero ('readonly').
  return _transaction(storeName_OR_storeNames, mode);
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-indexed_db/Database/transaction.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API