{"id":19816746,"url":"https://github.com/welldone-software/cordova-sqliteplugin-wp","last_synced_at":"2026-01-27T18:36:31.338Z","repository":{"id":14137273,"uuid":"16842782","full_name":"welldone-software/Cordova-SQLitePlugin-WP","owner":"welldone-software","description":"Cordova/Phonegap SQLite plugin Windows Phone 8+","archived":false,"fork":false,"pushed_at":"2014-02-16T06:49:08.000Z","size":636,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-02-26T04:34:10.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/welldone-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-14T16:30:20.000Z","updated_at":"2014-02-16T06:49:08.000Z","dependencies_parsed_at":"2022-08-26T17:13:26.953Z","dependency_job_id":null,"html_url":"https://github.com/welldone-software/Cordova-SQLitePlugin-WP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welldone-software%2FCordova-SQLitePlugin-WP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welldone-software%2FCordova-SQLitePlugin-WP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welldone-software%2FCordova-SQLitePlugin-WP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welldone-software%2FCordova-SQLitePlugin-WP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/welldone-software","download_url":"https://codeload.github.com/welldone-software/Cordova-SQLitePlugin-WP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241170236,"owners_count":19921571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T10:10:31.104Z","updated_at":"2026-01-27T18:36:31.308Z","avatar_url":"https://github.com/welldone-software.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordova-SQLitePlugin-WP\n\n### Apache Cordova/Phonegap SQLite plugin for Windows Phone 8+\n\n\u003e This plugin is an HTML5 Web SQL polyfill for Windows Phone 8+ Apache Cordova applications.\n\n## Featuers\n\n* HTML5 Web SQL syntax and semantics\n\t* With the excepton of `window.openDatabase` and `db.close` being asyncronous, accepting callbacks for success and error. \n\n* Multiple opened databases and outstanding transactions\n\n* Full support for nesting `executeSql` in a trasaction\n\t\n\t* Combine nested and non-nested `executeSql` calls in a single transaction.\n\n\t* Data and error callbacks allow further `executeSql` calls to be made from within them.\n\n\t* The data callabck returns a `resultSet` with `items`, `rowsAffected` and `insertId`.\n\n\t* The error callabck allows cancelling the rollback by returning `false`.\n\t\n\t\n* Versioning support\n\n\t* Version argument is enforced in `window.openDatabse` \n\t\t* If the databse exists, method fail if requested version is wrong.\n\t\t* If it doesn't, a new one is created and assigned the requrested version.\n\t\t* Version argument can be an empty string `''`\n\t\t\t* If the databse exists, in any version, will open and set the version.\n\t\t\t* If it doesn't, will create a new one with version '0.0'.\n\n\t* Databse version is availbale via `db.version` property.\n\n\t* Support for transactional version changes via `db.changeVersion`.\n\n* Tests and Examples ([Cordova-SQLitePlugin-WP-Examples](https://github.com/welldone-software/Cordova-SQLitePlugin-WP-Examples))\n \n \t* Fully working example project using Apache Cordova command line\n\n \t* Fully working example project using manual installation\n\n \t* Extensive Jasmine 2.0 based test suite \n\n\n## Installation\n\nYou can install the plugin using the Apache Cordova command line or manually.\n\n### Using the Cordova command line \n\nAssuming you have installed the Apache Cordova cli, created a cordova project and added the `wp8` platform (see [Apache Cordova command-line interface docs](http://cordova.apache.org/docs/en/3.3.0/guide_cli_index.md.html)), cd to the Cordova project root and run:\n\n```bash\ncordvova plugins add Cordova-SQLitePlugin-WP\n``` \n\n### Manual installation\n\n1. Create a Cordova wp8 Visual Studio project using the wizard (see [Apache Cordova's Windows Phone 8 Platform Guide](http://cordova.apache.org/docs/en/3.3.0/guide_platforms_wp8_index.md.html)).\n\n1. Clone this repository or download a ziped vesrion and unzip it.\n\n1. Copy the `src/wp/*.cs` to your Visual Studio project directory.\n\n1. Add the `www/*.js` to your www directory.\n\n1. Add the below xml fragment to your `config.xml` file\n\n```xml\n\t\u003cconfig-file target=\"config.xml\" parent=\"/*\"\u003e\n\t    \u003cfeature name=\"SQLitePlugin\"\u003e\n\t        \u003cparam name=\"wp-package\" value=\"SQLitePlugin\"/\u003e\n\t    \u003c/feature\u003e\n\t\u003c/config-file\u003e\n```\n\n## Usage\n\nWorking examples for both a manual constrcted and cli based projects are available at [Cordova-SQLitePlugin-WP-Examples](https://github.com/welldone-software/Cordova-SQLitePlugin-WP-Examples).\n\nOnce the plugin is installed, the following jasmine 2.0 test should succeed:\n\n```js\nit('sould allow crud and database managment scripts', function (done) {\n    window.openDatabase('name', '1.0', 'desc', 1024 * 1024 * 5, function (db) {\n        db.transaction(\n        function (tx) {\n            tx.executeSql('CREATE TABLE t(x INTEGER PRIMARY KEY ASC, yy TEXT, zz INTEGER)');\n            tx.executeSql('DROP TABLE t');\n            tx.executeSql('CREATE TABLE t(x INTEGER PRIMARY KEY ASC, y TEXT, z INTEGER, k INTEGER)');\n            tx.executeSql('INSERT INTO t (y, z, k) VALUES(\"y\", 7, 2)');\n            tx.executeSql('INSERT INTO t (y, z, k) VALUES(\"y1\", 71, 105)');\n            tx.executeSql('SELECT COUNT(x) as c FROM t', [], function (t, rs) {\n                expect(rs.rows.length).toBe(1);\n                var item = rs.rows.item(0);\n                expect(item['c']).toBe(2);\n                done();\n            });\n        },\n        function (err) {\n            expect('Unexpected error ' + JSON.stringify(err)).toBeUndefined();\n            done();\n        });\n    });\n});\n```\n\n## License\n\n```\nCopyright (c) 2014 Welldone Software Solutions Ltd.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelldone-software%2Fcordova-sqliteplugin-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwelldone-software%2Fcordova-sqliteplugin-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelldone-software%2Fcordova-sqliteplugin-wp/lists"}