{"id":21607048,"url":"https://github.com/mya-mya/spreadsheets-query","last_synced_at":"2025-07-22T08:05:07.531Z","repository":{"id":118132417,"uuid":"414475206","full_name":"Mya-Mya/spreadsheets-query","owner":"Mya-Mya","description":"SELECT DELETE or INSERT your Spreadsheet from GAS","archived":false,"fork":false,"pushed_at":"2021-10-14T00:06:31.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T15:19:38.943Z","etag":null,"topics":["gas","googleappsscript","googlespreadsheet","query","spreadsheet"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mya-Mya.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":"2021-10-07T05:42:53.000Z","updated_at":"2021-10-13T00:58:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"900842e4-1906-404a-8c0d-2c382ceb5ae8","html_url":"https://github.com/Mya-Mya/spreadsheets-query","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Mya-Mya/spreadsheets-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2Fspreadsheets-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2Fspreadsheets-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2Fspreadsheets-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2Fspreadsheets-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mya-Mya","download_url":"https://codeload.github.com/Mya-Mya/spreadsheets-query/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mya-Mya%2Fspreadsheets-query/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266455038,"owners_count":23931349,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gas","googleappsscript","googlespreadsheet","query","spreadsheet"],"created_at":"2024-11-24T20:28:28.767Z","updated_at":"2025-07-22T08:05:07.511Z","avatar_url":"https://github.com/Mya-Mya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 概要と計画\n```\nsq.open(\"Spreadsheet-ID\", \"FoodsSheet\")\n  .select([\"name\", \"genre\", \"calorie\"])\n  .where(sq.numberLessThan(\"calorie\", 500))\n  .orderby(\"name\")\n  .limit(20)\n  .json()\n```\n* Spreadsheetにある情報をSQLと似た様式で抽出、削除、追加できるライブラリ。\n* いわゆる「SQLインジェクション」を防ぐため、「WHERE句」はオブジェクト指向プログラミングにより構築をする。悪意のあるコードが混入しないような仕組みを設ける。\n* 情報の抽出には[The Google Visualization API Query Language](https://developers.google.com/chart/interactive/docs/querylanguage)を用いる。\n同言語のコードを記述した[QUERY関数](https://support.google.com/docs/answer/3093343?hl=ja)を一時的にSpreadsheet上に貼り付け、その結果を読み取るという仕組み。\n* 情報の削除には一般的な線形探索を用いる。\n* 情報の追加にはSpreadsheet Serviceの関数をそのまま使う。\n* これらのコードはWebpackを用いてGAS上で実行可能なコードに変換と集約をした後、一般公開する。一般公開すると、他のGASプロジェクトから本ライブラリを使用できる。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmya-mya%2Fspreadsheets-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmya-mya%2Fspreadsheets-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmya-mya%2Fspreadsheets-query/lists"}