{"id":15707934,"url":"https://github.com/syucream/firesql","last_synced_at":"2025-05-12T19:56:18.797Z","repository":{"id":145235770,"uuid":"231206739","full_name":"syucream/FireSQL","owner":"syucream","description":"A SQL-like interface to Google Cloud Firestore in Java","archived":false,"fork":false,"pushed_at":"2020-01-07T15:57:22.000Z","size":73,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T14:45:27.829Z","etag":null,"topics":["cloud-firestore","java","sql"],"latest_commit_sha":null,"homepage":"","language":"Java","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/syucream.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":"2020-01-01T11:18:53.000Z","updated_at":"2020-08-28T15:34:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"87439842-ba6d-44b5-8542-9fcabaeb8b8b","html_url":"https://github.com/syucream/FireSQL","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/syucream%2FFireSQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2FFireSQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2FFireSQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syucream%2FFireSQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syucream","download_url":"https://codeload.github.com/syucream/FireSQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243191586,"owners_count":20251079,"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":["cloud-firestore","java","sql"],"created_at":"2024-10-03T20:42:12.559Z","updated_at":"2025-03-12T09:32:21.376Z","avatar_url":"https://github.com/syucream.png","language":"Java","readme":"# FireSQL\n\n[ ![Download](https://api.bintray.com/packages/syucream/maven/com.syucream.firesql/images/download.svg?version=0.0.1) ](https://bintray.com/syucream/maven/com.syucream.firesql/0.0.1/link)\n\nA SQL-like interface to [Google Cloud Firestore](https://firebase.google.com/docs/firestore) in Java\n\n# Synopsis\n\nSDKs for Google Cloud Firestore provides high-level query builder stuff like:\n\n```java\n...\nFirestore db = FirestoreClient.getFirestore();\n\nQuery query = db\n    .collection(\"users\")\n    .select(\"id\", \"name\", \"age\")\n    .whereGreaterThanOrEqualTo(\"age\", 30L)\n    .whereLessThan(\"age\", 40L)\n    .orderBy(\"id\", Query.Direction.ASCENDING)\n    .limit(100)\n    .offset(200);\n\nquery.get();\n...\n```\n\nBut SQL will be sometimes wanted, e.g. executing extraction queries periodically, non coders want to execute custom query on their operations, etc.\nSo that, FireSQL supports primitive SQL-like interface, like below:\n\n```java \n...\nFirestore db = FirestoreClient.getFirestore();\n\nFireSQL firesql = new FireSQL(db);\nQuery query = firesql.query(\"SELECT id, name, age FROM users WHERE age \u003e= 30 AND age \u003c 40 ORDER BY id LIMIT 100 OFFSET 200\");\n\nquery.get();\n...\n```\n\n# Limitations\n\n- Only `SELECT` supported\n- `JOIN`, `GROUP BY`, aggregation functions, sub queries are unsupported\n- `NOT`, `IN` and some other expression are unsupported\n- `array-contains` expression in Firestore query is unsuported for now\n\n# References\n\n- JavaScript implementation https://github.com/jsayol/FireSQL\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyucream%2Ffiresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyucream%2Ffiresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyucream%2Ffiresql/lists"}