{"id":15609268,"url":"https://github.com/imteekay/sql-query-json","last_synced_at":"2025-04-28T11:50:13.132Z","repository":{"id":91435959,"uuid":"198075344","full_name":"imteekay/sql-query-json","owner":"imteekay","description":"Experiment SQL-query in JavaScript for JSON","archived":false,"fork":false,"pushed_at":"2019-08-11T18:50:59.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T01:47:37.684Z","etag":null,"topics":["javascript","js","json","query","sql","sql-query"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/imteekay.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-21T15:44:57.000Z","updated_at":"2019-10-17T12:56:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"69af4576-efcd-4aec-89c2-c1d643079ec8","html_url":"https://github.com/imteekay/sql-query-json","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/imteekay%2Fsql-query-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imteekay%2Fsql-query-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imteekay%2Fsql-query-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imteekay%2Fsql-query-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imteekay","download_url":"https://codeload.github.com/imteekay/sql-query-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251310604,"owners_count":21568998,"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":["javascript","js","json","query","sql","sql-query"],"created_at":"2024-10-03T05:41:52.794Z","updated_at":"2025-04-28T11:50:13.107Z","avatar_url":"https://github.com/imteekay.png","language":"JavaScript","readme":"# SQL Query JSON\n\nExperiment SQL-query in JavaScript for JSON\n\nYou have this JSON:\n\n```javascript\nconst json = {\n  users: [\n    {\n      'id': 1,\n      'name': 'TK',\n      'age': 26,\n      'email': 'tk@mail.com'\n    },\n    {\n      'id': 2,\n      'name': 'Daniel',\n      'age': 30,\n      'email': 'dani@mail.com'\n    },\n    {\n      'id': 3,\n      'name': 'Kaio',\n      'age': 11,\n      'email': 'kaio@mail.com'\n    }\n  ]\n};\n```\n\nAnd you want this interface (like a SQL query):\n\n```javascript\nselect(['id', 'name'])\n  .from('users')\n  .where('id', 1);\n```\n\nAn the result should be:\n\n```javascript\n[{ id: 1, name: 'TK' }]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimteekay%2Fsql-query-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimteekay%2Fsql-query-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimteekay%2Fsql-query-json/lists"}