{"id":16112798,"url":"https://github.com/zeyadkhaled/firebase-query-to-excel","last_synced_at":"2025-07-17T08:33:01.196Z","repository":{"id":220121014,"uuid":"141678252","full_name":"zeyadkhaled/Firebase-Query-to-Excel","owner":"zeyadkhaled","description":"A Java class to process Firebase Firestore database queries and create an excel file that could be shared.","archived":false,"fork":false,"pushed_at":"2019-05-03T21:19:55.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-18T21:41:06.765Z","etag":null,"topics":["csv","database","excel","firebase","firebase-database","firebase-realtime-database","firestore","java","library","query","sharing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeyadkhaled.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-07-20T07:22:52.000Z","updated_at":"2019-11-01T06:07:57.000Z","dependencies_parsed_at":"2024-02-06T07:00:46.917Z","dependency_job_id":null,"html_url":"https://github.com/zeyadkhaled/Firebase-Query-to-Excel","commit_stats":null,"previous_names":["zeyadkhaled/firebase-query-to-excel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeyadkhaled/Firebase-Query-to-Excel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyadkhaled%2FFirebase-Query-to-Excel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyadkhaled%2FFirebase-Query-to-Excel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyadkhaled%2FFirebase-Query-to-Excel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyadkhaled%2FFirebase-Query-to-Excel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeyadkhaled","download_url":"https://codeload.github.com/zeyadkhaled/Firebase-Query-to-Excel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeyadkhaled%2FFirebase-Query-to-Excel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265585296,"owners_count":23792714,"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":["csv","database","excel","firebase","firebase-database","firebase-realtime-database","firestore","java","library","query","sharing"],"created_at":"2024-10-09T20:09:19.385Z","updated_at":"2025-07-17T08:33:01.132Z","avatar_url":"https://github.com/zeyadkhaled.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase-Query-to-Excel\nA class to process Firebase Firestore database queries and create an excel file that could be shared\n\n## Usage\n1. Add above class to your project\n2. Import necessary libraries\n3. To use the class in another class or activity create an instance of it\n\n    -fieldNames String array contains the name of the fields you want to retrieve from the query. Order of names in the array is important.\n```java\nString[] fieldNames = {\"name\", \"email\", \"id\", \"more\"};\nFirebaseDBCollectionToExcel createExcel = new FirebaseDBCollectionToExcel( fieldNames);\n```\n4. Within the part you call the query include the buildFileFromQuery(QueryDocumentSnapshot document ) method like so:\n```java\ndb.collection(\"users\").get().addOnCompleteListener(new OnCompleteListener\u003cQuerySnapshot\u003e() {\n\n            public void onComplete(@NonNull Task\u003cQuerySnapshot\u003e task) {\n\n                if (task.isSuccessful()) {\n                \n                     for ( QueryDocumentSnapshot document : task.getResult()) { //Include here\n                          createExcel.buildFileFromQuery(document);\n                     }\n   }\n  }\n}\n```\n5. After creating the file, you can save it to the local storage using saveFileToStorage(String fileName, String dirName) method:\n```java\nString fileName = \"File Name\";\nString dirName = \"Directory Name\";\ncreateExcel.saveFileToStorage(fileName, dirName);\n```\n6. Lastly given the file is in storage, you can share it through mailing applications using the method shareFileToEmail( String subject)\n  \n   This method will open an intent\n```java\nString subject = \"Email Subject\";\ncreateExcel.shareToEmail( subject);\n```\n\n## Needed improvments\n- Create a ready to use importable library\n\n## Authors\n[Zeyad Khaled](https://www.linkedin.com/in/zeyadkhaled/ \"Zeyad Khaled\")\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeyadkhaled%2Ffirebase-query-to-excel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeyadkhaled%2Ffirebase-query-to-excel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeyadkhaled%2Ffirebase-query-to-excel/lists"}