{"id":16579100,"url":"https://github.com/craftzdog/react-native-quick-websql","last_synced_at":"2025-03-16T20:31:38.459Z","repository":{"id":49737842,"uuid":"486860084","full_name":"craftzdog/react-native-quick-websql","owner":"craftzdog","description":"Fast WebSQL-compatible SQLite driver for React Native","archived":false,"fork":false,"pushed_at":"2023-01-17T06:30:50.000Z","size":589,"stargazers_count":45,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-11T12:44:33.663Z","etag":null,"topics":["jsi","react-native","sqlite","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/craftzdog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-29T06:21:05.000Z","updated_at":"2024-11-07T00:15:43.000Z","dependencies_parsed_at":"2023-02-10T08:15:22.026Z","dependency_job_id":null,"html_url":"https://github.com/craftzdog/react-native-quick-websql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftzdog%2Freact-native-quick-websql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftzdog%2Freact-native-quick-websql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftzdog%2Freact-native-quick-websql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftzdog%2Freact-native-quick-websql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craftzdog","download_url":"https://codeload.github.com/craftzdog/react-native-quick-websql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830922,"owners_count":20354850,"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":["jsi","react-native","sqlite","typescript"],"created_at":"2024-10-11T22:16:55.849Z","updated_at":"2025-03-16T20:31:37.890Z","avatar_url":"https://github.com/craftzdog.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eReact Native Quick WebSQL\u003c/h1\u003e\n\n![cover](https://repository-images.githubusercontent.com/486860084/27ea3b8e-30c4-4acb-9c2c-691b37d9e2a2)\n\nThis library provides a [WebSQL](http://www.w3.org/TR/webdatabase/)-compatible API to store data in a react native app, by using a fast [JSI](https://formidable.com/blog/2019/jsi-jsc-part-2/) implementation of the SQLite driver [react-native-quick-sqlite](https://github.com/ospfranco/react-native-quick-sqlite).\n\n## Installation\n\n```sh\nyarn add react-native-quick-websql react-native-quick-sqlite\nnpx pod-install\n```\n\n## Usage\n\nSee [an example project](./example/src/App.tsx) for more detail.\n\n```js\nimport WebSQLite from \"react-native-quick-websql\";\n\nconst db = WebSQLite.openDatabase('mydb.db')\ndb.transaction(\n  (txn) =\u003e {\n    console.log('Running transaction')\n    txn.executeSql('DROP TABLE IF EXISTS Users', [])\n    txn.executeSql(\n      'CREATE TABLE IF NOT EXISTS Users(user_id INTEGER PRIMARY KEY NOT NULL, name VARCHAR(30))',\n      []\n    )\n    txn.executeSql('INSERT INTO Users (name) VALUES (:name)', [\n      'nora',\n    ])\n    txn.executeSql('INSERT INTO Users (name) VALUES (:name)', ['takuya'])\n    txn.executeSql('SELECT * FROM `users`', [], function (_tx, res) {\n      for (let i = 0; i \u003c (res.rows?.length || 0); ++i) {\n        console.log('item:', res.rows?.item(i))\n      }\n    })\n  },\n  (e) =\u003e {\n    console.error(e)\n  }\n)\n```\n\n\n## Limitations \u0026 Debugging\n\nAs the library uses JSI for synchronous native methods access, remote debugging (e.g. with Chrome) is no longer possible.\nInstead, you should use [Flipper](https://github.com/facebook/flipper).\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT by Takuya Matsuyama\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftzdog%2Freact-native-quick-websql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraftzdog%2Freact-native-quick-websql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftzdog%2Freact-native-quick-websql/lists"}