{"id":14155160,"url":"https://github.com/AmrDeveloper/FileQL","last_synced_at":"2025-08-06T00:33:33.349Z","repository":{"id":222806664,"uuid":"758456079","full_name":"AmrDeveloper/FileQL","owner":"AmrDeveloper","description":"A tool that allow you to run SQL-like query on local files instead of database files using the GitQL SDK.","archived":false,"fork":false,"pushed_at":"2024-08-07T19:00:53.000Z","size":892,"stargazers_count":70,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-07T22:22:48.076Z","etag":null,"topics":["database","engine","files","gitql","parser","sql","tokenizer"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/fileql","language":"Rust","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/AmrDeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"amrdeveloper"}},"created_at":"2024-02-16T11:08:37.000Z","updated_at":"2024-08-07T19:01:01.000Z","dependencies_parsed_at":"2024-03-04T07:29:32.891Z","dependency_job_id":"77d69a2e-9389-464f-a562-ad28ae193107","html_url":"https://github.com/AmrDeveloper/FileQL","commit_stats":null,"previous_names":["amrdeveloper/fileql"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FFileQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FFileQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FFileQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FFileQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmrDeveloper","download_url":"https://codeload.github.com/AmrDeveloper/FileQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215735785,"owners_count":15923388,"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":["database","engine","files","gitql","parser","sql","tokenizer"],"created_at":"2024-08-17T08:02:18.912Z","updated_at":"2024-08-17T08:04:45.019Z","avatar_url":"https://github.com/AmrDeveloper.png","language":"Rust","readme":"\u003ch1 align=\"center\"\u003eFileQL - File Query Language\u003c/h1\u003e\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"media/fql_logo.svg\" width=\"20%\" height=\"20%\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Crates.io\" src=\"https://img.shields.io/crates/v/fileql?style=flat-square\"\u003e\n  \u003cimg alt=\"Deps\" src=\"https://deps.rs/repo/github/amrdeveloper/fileql/status.svg\"\u003e\n  \u003cimg alt=\"Release\" src=\"https://github.com/AmrDeveloper/fileql/actions/workflows/release.yaml/badge.svg\"\u003e\n  \u003cimg alt=\"GitHub release\" src=\"https://img.shields.io/github/v/release/amrdeveloper/fileql\"\u003e\n  \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/amrdeveloper/fileql\"\u003e\n  \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/amrdeveloper/fileql\"\u003e\n  \u003cimg alt=\"GitHub all releases\" src=\"https://img.shields.io/github/downloads/amrdeveloper/fileql/total\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nFileQL is a tool that allow you to run SQL-like query on local files instead of database files using the GitQL SDK.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/fql_demo.gif\" alt=\"animated\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n---\n\n### Samples\n\nNote that all Keywords in FileQL are case-insensitive, similar to SQL.\n\n```sql\nSELECT 1\nSELECT 1 + 2\nSELECT LEN(\"File Query Language\")\nSELECT \"One\" IN (\"One\", \"Two\", \"Three\")\nSELECT \"File Query Language\" LIKE \"%Query%\"\n\nSELECT * FROM files\nSELECT COUNT(path) from files\nSELECT DISTINCT parent AS folders FROM files\nSELECT CHILDREN_COUNT(parent) FROM files\n```\n\n---\n\n### Files table structure\n\n| Name      | Type    | Description              |\n| --------- | ------- | ------------------------ |\n| path      | Text    | File path                |\n| parent    | Text    | File parent path         |\n| extension | Text    | Extension of the file    |\n| is_dir    | Boolean | True if it's a directory |\n| is_file   | Boolean | True if it's a file      |\n| size      | Integer | Size of the file         |\n\n---\n\n### Files QL Functions\n\n| Name        | Parameters | Return  | Description                                                  |\n| ----------- | ---------- | ------- | ------------------------------------------------------------ |\n| FILES_COUNT | Text       | Integer | Number of children for directory or 0 if it's not valid path |\n\n---\n\n### Download or Install\n\n- Install from Cargo.io\n\n```\ncargo install fileql\n```\n\n- Install from Winget\n\n```\nwinget install fileql\n```\n\n\n- Build from source code\n\n```\ngit clone https://github.com/AmrDeveloper/fileql.git\ncd fileql\ncargo build\n```\n\n### Run FileQL\n\n```\nFileQL is a SQL like query language to run on local files\nUsage: FileQL [OPTIONS]\n\nOptions:\n  -f,  --files \u003cpaths\u003e        Path for local files to run query on\n  -e,  --excludes \u003cpaths\u003e     Path for local files to exclude from query scope\n  -q,  --query \u003cGQL Query\u003e    FileQL query to run on selected files\n  -p,  --pagination           Enable print result with pagination\n  -ps, --pagesize             Set pagination page size [default: 10]\n  -o,  --output               Set output format [render, json, csv]\n  -a,  --analysis             Print Query analysis\n  -h,  --help                 Print FileQL help\n  -v,  --version              Print FileQL Current Version\n```\n\n### License\n```\nMIT License\n\nCopyright (c) 2024 Amr Hesham\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":["https://github.com/sponsors/amrdeveloper"],"categories":["sql"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmrDeveloper%2FFileQL","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAmrDeveloper%2FFileQL","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmrDeveloper%2FFileQL/lists"}