You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/05/13 00:53:03 UTC
[08/15] docs commit: Remove files not longer in English docs
Remove files not longer in English docs
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/01a005cf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/01a005cf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/01a005cf
Branch: refs/heads/master
Commit: 01a005cf8dbcd1770087f2a4641b3c0413df7995
Parents: 3c9fa2f
Author: Andrey Kurdyumov <ka...@gmail.com>
Authored: Mon May 11 19:39:11 2015 +0600
Committer: Andrey Kurdyumov <ka...@gmail.com>
Committed: Mon May 11 19:39:11 2015 +0600
----------------------------------------------------------------------
.../edge/cordova/storage/database/database.md | 113 ---------------
.../storage/localstorage/localstorage.md | 118 ----------------
.../cordova/storage/parameters/display_name.md | 19 ---
docs/ru/edge/cordova/storage/parameters/name.md | 19 ---
docs/ru/edge/cordova/storage/parameters/size.md | 19 ---
.../edge/cordova/storage/parameters/version.md | 19 ---
.../edge/cordova/storage/sqlerror/sqlerror.md | 40 ------
.../storage/sqlresultset/sqlresultset.md | 139 -------------------
.../sqlresultsetrowlist/sqlresultsetrowlist.md | 127 -----------------
.../storage/sqltransaction/sqltransaction.md | 105 --------------
.../cordova/storage/storage.opendatabase.md | 66 ---------
11 files changed, 784 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/database/database.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/database/database.md b/docs/ru/edge/cordova/storage/database/database.md
deleted file mode 100644
index 2548234..0000000
--- a/docs/ru/edge/cordova/storage/database/database.md
+++ /dev/null
@@ -1,113 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# Базы данных
-
-Обеспечивает доступ к базе данных SQL.
-
-## Методы
-
-* **сделка**: запускает транзакцию базы данных.
-
-* **changeVersion**: позволяет сценариям автоматически проверить номер версии и изменить его при обновлении схемы.
-
-## Подробная информация
-
-`window.openDatabase()`Метод возвращает `Database` объект.
-
-## Поддерживаемые платформы
-
-* Андроид
-* WebWorks ежевики (OS 6.0 и выше)
-* iOS
-* Tizen
-
-## Быстрый пример транзакции
-
- function populateDB(tx) {
- tx.executeSql('DROP TABLE IF EXISTS DEMO');
- tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
- }
-
- function errorCB(err) {
- alert("Error processing SQL: "+err.code);
- }
-
- function successCB() {
- alert("success!");
- }
-
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(populateDB, errorCB, successCB);
-
-
-## Изменения версии быстрый пример
-
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.changeVersion("1.0", "1.1");
-
-
-## Полный пример
-
- <!DOCTYPE html>
- <html>
- <head>
- <title>Storage Example</title>
-
- <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
- <script type="text/javascript" charset="utf-8">
-
- // Wait for device API libraries to load
- //
- document.addEventListener("deviceready", onDeviceReady, false);
-
- // device APIs are available
- //
- function onDeviceReady() {
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(populateDB, errorCB, successCB);
- }
-
- // Populate the database
- //
- function populateDB(tx) {
- tx.executeSql('DROP TABLE IF EXISTS DEMO');
- tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
- }
-
- // Transaction error callback
- //
- function errorCB(tx, err) {
- alert("Error processing SQL: "+err);
- }
-
- // Transaction success callback
- //
- function successCB() {
- alert("success!");
- }
-
- </script>
- </head>
- <body>
- <h1>Example</h1>
- <p>Database</p>
- </body>
- </html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/localstorage/localstorage.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/localstorage/localstorage.md b/docs/ru/edge/cordova/storage/localstorage/localstorage.md
deleted file mode 100644
index 90276e2..0000000
--- a/docs/ru/edge/cordova/storage/localstorage/localstorage.md
+++ /dev/null
@@ -1,118 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# localStorage
-
-Обеспечивает доступ к W3C [интерфейс веб-хранилища][1]
-
- [1]: http://dev.w3.org/html5/webstorage/#the-localstorage-attribute
-
- var permanentStorage = window.localStorage;
- var tempStorage = window.sessionStorage;
-
-
-## Методы
-
-* **ключ**: Возвращает имя ключа в указанной позиции.
-
-* **getItem**: Возвращает элемент, определяемый указанным ключом.
-
-* **setItem**: присваивает значение элемента с ключом.
-
-* **removeItem**: Удаляет элемент с указанным ключом.
-
-* **Удалить**: удаляет все пары ключ/значение.
-
-## Подробная информация
-
-`window.localStorage`Интерфейс реализует W3C [интерфейс веб-хранилища][2]. Приложение может использовать его для сохранения постоянных данных с использованием пар ключ значение. `window.sessionStorage`Интерфейс работает таким же образом во всех отношениях, за исключением того, что все данные очищается каждый раз, когда приложение закрывается. Каждая база данных содержит отдельное пространство имен.
-
- [2]: http://dev.w3.org/html5/webstorage/
-
-## Поддерживаемые платформы
-
-* Андроид
-* WebWorks ежевики (OS 6.0 и выше)
-* iOS
-* Tizen
-* Windows Phone 7 и 8
-
-## Ключевые быстрый пример
-
- var keyName = window.localStorage.key(0);
-
-
-## Быстрый пример набора элементов
-
- window.localStorage.setItem("key", "value");
-
-
-## Получить быстрый пример элемента
-
- var value = window.localStorage.getItem("key");
- // value is now equal to "value"
-
-
-## Удалить пункт быстрый пример
-
- window.localStorage.removeItem("key");
-
-
-## Снимите небольшой пример
-
- window.localStorage.clear();
-
-
-## Полный пример
-
- <!DOCTYPE html>
- <html>
- <head>
- <title>Storage Example</title>
-
- <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
- <script type="text/javascript" charset="utf-8">
-
- // Wait for device API libraries to load
- //
- document.addEventListener("deviceready", onDeviceReady, false);
-
- // device APIs are available
- //
- function onDeviceReady() {
- window.localStorage.setItem("key", "value");
- var keyname = window.localStorage.key(i);
- // keyname is now equal to "key"
- var value = window.localStorage.getItem("key");
- // value is now equal to "value"
- window.localStorage.removeItem("key");
- window.localStorage.setItem("key2", "value2");
- window.localStorage.clear();
- // localStorage is now empty
- }
-
- </script>
- </head>
- <body>
- <h1>Example</h1>
- <p>localStorage</p>
- </body>
- </html>
-
-
-## Windows Phone 7 причуды
-
-Точечная нотация является *не* доступны на Windows Phone 7. Обязательно используйте `setItem` или `getItem` , а не доступ к ключи напрямую из объекта хранилища, такие как`window.localStorage.someKey`.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/parameters/display_name.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/parameters/display_name.md b/docs/ru/edge/cordova/storage/parameters/display_name.md
deleted file mode 100644
index 86134fc..0000000
--- a/docs/ru/edge/cordova/storage/parameters/display_name.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# database_displayname
-
-Отображаемое имя базы данных.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/parameters/name.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/parameters/name.md b/docs/ru/edge/cordova/storage/parameters/name.md
deleted file mode 100644
index 07cb420..0000000
--- a/docs/ru/edge/cordova/storage/parameters/name.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# database_name
-
-Имя базы данных.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/parameters/size.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/parameters/size.md b/docs/ru/edge/cordova/storage/parameters/size.md
deleted file mode 100644
index 950d92d..0000000
--- a/docs/ru/edge/cordova/storage/parameters/size.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# database_size
-
-Размер базы данных в байтах.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/parameters/version.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/parameters/version.md b/docs/ru/edge/cordova/storage/parameters/version.md
deleted file mode 100644
index bb035a7..0000000
--- a/docs/ru/edge/cordova/storage/parameters/version.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# database_version
-
-Версия базы данных.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/sqlerror/sqlerror.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/sqlerror/sqlerror.md b/docs/ru/edge/cordova/storage/sqlerror/sqlerror.md
deleted file mode 100644
index 7ea10cb..0000000
--- a/docs/ru/edge/cordova/storage/sqlerror/sqlerror.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# SQLError
-
-A `SQLError` объект создается при возникновении ошибки.
-
-## Свойства
-
-* **код**: один из кодов стандартных ошибок, перечисленные ниже.
-
-* **сообщение**: описание ошибки.
-
-## Константы
-
-* `SQLError.UNKNOWN_ERR`
-* `SQLError.DATABASE_ERR`
-* `SQLError.VERSION_ERR`
-* `SQLError.TOO_LARGE_ERR`
-* `SQLError.QUOTA_ERR`
-* `SQLError.SYNTAX_ERR`
-* `SQLError.CONSTRAINT_ERR`
-* `SQLError.TIMEOUT_ERR`
-
-## Описание
-
-`SQLError`Объект создается при возникновении ошибки при обработке базы данных.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/sqlresultset/sqlresultset.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/sqlresultset/sqlresultset.md b/docs/ru/edge/cordova/storage/sqlresultset/sqlresultset.md
deleted file mode 100644
index 28f9bde..0000000
--- a/docs/ru/edge/cordova/storage/sqlresultset/sqlresultset.md
+++ /dev/null
@@ -1,139 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# SQLResultSet
-
-Когда `SQLTransaction` объекта `executeSql` вызывается метод, заданный обратный вызов выполняется с `SQLResultSet` параметр.
-
-## Свойства
-
-* **insertId**: идентификатор строки строки, `SQLResultSet` объекта SQL заявление вставляется в базу данных.
-
-* **rowsAffected**: количество строк, изменены инструкцией SQL, нуль, если заявление не затронула ни одной строки.
-
-* **строки**: `SQLResultSetRowList` представляющие возвращенных строк, empty, если строки не возвращаются.
-
-## Подробная информация
-
-Когда `SQLTransaction` объекта `executeSql` вызывается метод, заданный обратный вызов выполняется с `SQLResultSet` параметр, содержащий три свойства:
-
-* `insertId`Возвращает номер строки successly оператора вставки SQL. Если SQL не вставить строки, `insertId` не задано.
-
-* `rowsAffected`Всегда `` для SQL `select` заявление. Для `insert` или `update` заявления, она возвращает количество измененные строки.
-
-* Финал `SQLResultSetList` содержатся данные, возвращенные инструкцией SQL select.
-
-## Поддерживаемые платформы
-
-* Андроид
-* WebWorks ежевики (OS 6.0 и выше)
-* iOS
-* Tizen
-
-## Выполнение SQL быстрый пример
-
- function queryDB(tx) {
- tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
- }
-
- function querySuccess(tx, results) {
- console.log("Returned rows = " + results.rows.length);
- // this will be true since it was a select statement and so rowsAffected was 0
- if (!results.rowsAffected) {
- console.log('No rows affected!');
- return false;
- }
- // for an insert statement, this property will return the ID of the last inserted row
- console.log("Last inserted row ID = " + results.insertId);
- }
-
- function errorCB(err) {
- alert("Error processing SQL: "+err.code);
- }
-
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(queryDB, errorCB);
-
-
-## Полный пример
-
- <!DOCTYPE html>
- <html>
- <head>
- <title>Storage Example</title>
-
- <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
- <script type="text/javascript" charset="utf-8">
-
- // Wait for device API libraries to load
- //
- document.addEventListener("deviceready", onDeviceReady, false);
-
- // Populate the database
- //
- function populateDB(tx) {
- tx.executeSql('DROP TABLE IF EXISTS DEMO');
- tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
- }
-
- // Query the database
- //
- function queryDB(tx) {
- tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
- }
-
- // Query the success callback
- //
- function querySuccess(tx, results) {
- console.log("Returned rows = " + results.rows.length);
- // this will be true since it was a select statement and so rowsAffected was 0
- if (!results.rowsAffected) {
- console.log('No rows affected!');
- return false;
- }
- // for an insert statement, this property will return the ID of the last inserted row
- console.log("Last inserted row ID = " + results.insertId);
- }
-
- // Transaction error callback
- //
- function errorCB(err) {
- console.log("Error processing SQL: "+err.code);
- }
-
- // Transaction success callback
- //
- function successCB() {
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(queryDB, errorCB);
- }
-
- // device APIs are available
- //
- function onDeviceReady() {
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(populateDB, errorCB, successCB);
- }
-
- </script>
- </head>
- <body>
- <h1>Example</h1>
- <p>Database</p>
- </body>
- </html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.md b/docs/ru/edge/cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.md
deleted file mode 100644
index 5e3f889..0000000
--- a/docs/ru/edge/cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.md
+++ /dev/null
@@ -1,127 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# SQLResultSetRowList
-
-Одним из свойств `SQLResultSet` содержащие строки возвращенных запросом SQL.
-
-## Свойства
-
-* **Длина**: количество строк, возвращенных запросом SQL.
-
-## Методы
-
-* **пункт**: Возвращает строку с указанным индексом, представленное объектом JavaScript.
-
-## Подробная информация
-
-`SQLResultSetRowList`Содержит данные, возвращаемые SQL `select` заявление. Объект содержит `length` свойство, указывающее, сколько строк `select` возвращает заявление. Чтобы получить строки данных, вызовите `item` метод, чтобы указать индекс. Он возвращает JavaScript `Object` , свойства которых являются столбцами базы данных `select` против был выполнен оператор.
-
-## Поддерживаемые платформы
-
-* Андроид
-* WebWorks ежевики (OS 6.0 и выше)
-* iOS
-* Tizen
-
-## Выполнение SQL быстрый пример
-
- function queryDB(tx) {
- tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
- }
-
- function querySuccess(tx, results) {
- var len = results.rows.length;
- console.log("DEMO table: " + len + " rows found.");
- for (var i=0; i<len; i++){
- console.log("Row = " + i + " ID = " + results.rows.item(i).id + " Data = " + results.rows.item(i).data);
- }
- }
-
- function errorCB(err) {
- alert("Error processing SQL: "+err.code);
- }
-
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(queryDB, errorCB);
-
-
-## Полный пример
-
- <!DOCTYPE html>
- <html>
- <head>
- <title>Storage Example</title>
-
- <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
- <script type="text/javascript" charset="utf-8">
-
- // Wait for device API libraries to load
- //
- document.addEventListener("deviceready", onDeviceReady, false);
-
- // Populate the database
- //
- function populateDB(tx) {
- tx.executeSql('DROP TABLE IF EXISTS DEMO');
- tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
- }
-
- // Query the database
- //
- function queryDB(tx) {
- tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
- }
-
- // Query the success callback
- //
- function querySuccess(tx, results) {
- var len = results.rows.length;
- console.log("DEMO table: " + len + " rows found.");
- for (var i=0; i<len; i++){
- console.log("Row = " + i + " ID = " + results.rows.item(i).id + " Data = " + results.rows.item(i).data);
- }
- }
-
- // Transaction error callback
- //
- function errorCB(err) {
- console.log("Error processing SQL: "+err.code);
- }
-
- // Transaction success callback
- //
- function successCB() {
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(queryDB, errorCB);
- }
-
- // device APIs are available
- //
- function onDeviceReady() {
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(populateDB, errorCB, successCB);
- }
-
- </script>
- </head>
- <body>
- <h1>Example</h1>
- <p>Database</p>
- </body>
- </html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/sqltransaction/sqltransaction.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/sqltransaction/sqltransaction.md b/docs/ru/edge/cordova/storage/sqltransaction/sqltransaction.md
deleted file mode 100644
index 9943983..0000000
--- a/docs/ru/edge/cordova/storage/sqltransaction/sqltransaction.md
+++ /dev/null
@@ -1,105 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# SQLTransaction
-
-Разрешает выполнение инструкций SQL в базе данных.
-
-## Методы
-
-* **executeSql**: выполняет инструкцию SQL.
-
-## Подробная информация
-
-Вызов `Database` метод объекта транзакции, проходит `SQLTransaction` объект для заданного метода обратного вызова.
-
-## Поддерживаемые платформы
-
-* Андроид
-* WebWorks ежевики (OS 6.0 и выше)
-* iOS
-* Tizen
-
-## Выполнение SQL быстрый пример
-
- function populateDB(tx) {
- tx.executeSql('DROP TABLE IF EXISTS DEMO');
- tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
- }
-
- function errorCB(err) {
- alert("Error processing SQL: "+err);
- }
-
- function successCB() {
- alert("success!");
- }
-
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(populateDB, errorCB, successCB);
-
-
-## Полный пример
-
- <!DOCTYPE html>
- <html>
- <head>
- <title>Storage Example</title>
-
- <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
- <script type="text/javascript" charset="utf-8">
-
- // Wait for device API libraries to load
- //
- document.addEventListener("deviceready", onDeviceReady, false);
-
- // device APIs are available
- //
- function onDeviceReady() {
- var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
- db.transaction(populateDB, errorCB, successCB);
- }
-
- // Populate the database
- //
- function populateDB(tx) {
- tx.executeSql('DROP TABLE IF EXISTS DEMO');
- tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
- tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
- }
-
- // Transaction error callback
- //
- function errorCB(err) {
- alert("Error processing SQL: "+err);
- }
-
- // Transaction success callback
- //
- function successCB() {
- alert("success!");
- }
-
- </script>
- </head>
- <body>
- <h1>Example</h1>
- <p>SQLTransaction</p>
- </body>
- </html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/01a005cf/docs/ru/edge/cordova/storage/storage.opendatabase.md
----------------------------------------------------------------------
diff --git a/docs/ru/edge/cordova/storage/storage.opendatabase.md b/docs/ru/edge/cordova/storage/storage.opendatabase.md
deleted file mode 100644
index e77629d..0000000
--- a/docs/ru/edge/cordova/storage/storage.opendatabase.md
+++ /dev/null
@@ -1,66 +0,0 @@
----
-
-license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
-
-
- under the License.
----
-
-# openDatabase
-
-Возвращает новый объект `Database` объект.
-
- var dbShell = window.openDatabase(database_name, database_version, database_displayname, database_size);
-
-
-## Описание
-
-Этот метод создает новую базу данных SQL Lite и возвращает `Database` объект, который позволяет манипулирования данными.
-
-## Поддерживаемые платформы
-
-* Андроид
-* WebWorks ежевики (OS 6.0 и выше)
-* iOS
-* Tizen
-
-## Быстрый пример
-
- var db = window.openDatabase("test", "1.0", "Test DB", 1000000);
-
-
-## Полный пример
-
- <!DOCTYPE html>
- <html>
- <head>
- <title>Storage Example</title>
-
- <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
- <script type="text/javascript" charset="utf-8">
-
- // Wait for device API libraries to load
- //
- document.addEventListener("deviceready", onDeviceReady, false);
-
- // device APIs are available
- //
- function onDeviceReady() {
- var db = window.openDatabase("test", "1.0", "Test DB", 1000000);
- }
-
- </script>
- </head>
- <body>
- <h1>Example</h1>
- <p>Open Database</p>
- </body>
- </html>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org