{"id":24499657,"url":"https://github.com/codewithkyle/jsql","last_synced_at":"2025-03-15T07:16:00.967Z","repository":{"id":44585245,"uuid":"365589559","full_name":"codewithkyle/jsql","owner":"codewithkyle","description":"Asynchronously access and manage your IndexedDB databases using SQL queries.","archived":false,"fork":false,"pushed_at":"2023-04-05T19:55:09.000Z","size":6954,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T14:52:22.123Z","etag":null,"topics":["asynchronous","indexeddb","offline-capable","sql","web-worker"],"latest_commit_sha":null,"homepage":"https://jsql.codewithkyle.com/","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/codewithkyle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-05-08T18:54:03.000Z","updated_at":"2024-04-09T10:37:34.000Z","dependencies_parsed_at":"2023-01-24T22:00:28.829Z","dependency_job_id":null,"html_url":"https://github.com/codewithkyle/jsql","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Fjsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithkyle","download_url":"https://codeload.github.com/codewithkyle/jsql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695597,"owners_count":20332629,"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":["asynchronous","indexeddb","offline-capable","sql","web-worker"],"created_at":"2025-01-21T22:15:12.438Z","updated_at":"2025-03-15T07:16:00.935Z","avatar_url":"https://github.com/codewithkyle.png","language":"TypeScript","readme":"# JSQL\n\nAccess IndexedDB with SQL.\n\n## Installation\n\nInstall via NPM\n\n```bash\nnpm i -S @codewithkyle/jsql\n```\n\nInstall via CDN\n\n```javascript\nimport db from \"https://unpkg.com/@codewithkyle/jsql@1/jsql.js\";\n```\n\n## Getting Started\n\n```javascript\nimport db from \"https://unpkg.com/@codewithkyle/jsql@1/jsql.js\";\ndb.start();\n```\n\n\u003e **Hint**: read the [setup guide](https://jsql.codewithkyle.com/guides/setup) for additional details and configuration options.\n\n## Writing Queries\n\nInsert data into IndexedDB\n\n```javascript\ndb.query(\"INSERT INTO users VALUES ($user1, $user2)\", {\n    user1: {\n        name: \"Frank\",\n        email: \"franky123@example.com\",\n    },\n    user2: {\n        name: \"April Summers\",\n        email: \"popartfan18@example.com\",\n    }\n});\n```\n\nQuery data from IndexedDB\n\n```javascript\nconst users = await db.query(\"SELECT * FROM users LIMIT 10\")\nusers.map(user =\u003e console.log(user));\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Fjsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithkyle%2Fjsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Fjsql/lists"}