{"id":30189654,"url":"https://github.com/lotes/cql","last_synced_at":"2026-03-06T00:31:07.063Z","repository":{"id":69970692,"uuid":"121046087","full_name":"Lotes/CQL","owner":"Lotes","description":"Configurable Query Language","archived":false,"fork":false,"pushed_at":"2019-08-13T13:31:59.000Z","size":476,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T21:49:42.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cql.readthedocs.io/en/latest/","language":"C#","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/Lotes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2018-02-10T19:18:20.000Z","updated_at":"2019-12-04T19:27:33.000Z","dependencies_parsed_at":"2023-03-09T23:30:49.518Z","dependency_job_id":null,"html_url":"https://github.com/Lotes/CQL","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Lotes/CQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lotes%2FCQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lotes%2FCQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lotes%2FCQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lotes%2FCQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lotes","download_url":"https://codeload.github.com/Lotes/CQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lotes%2FCQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-08-12T18:20:25.709Z","updated_at":"2026-03-06T00:31:07.046Z","avatar_url":"https://github.com/Lotes.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Configurable Query Language (CQL)\n=================================\n\n![Example](example.png)\n\nWhat is the problem?\n--------------------\n\nThe raison d'être for this project is the typical filter problem:\nOn one side, your product delivers a dataset of complex types. On the other side\nthe user wants to **easily** query certain rows in the dataset. But you also want\nto empower him to address **complex properties**.\n\nHere is a solution!\n-------------------\n\nThe two components, provided here, are\n\n* a query language, that can be configured from a high-level point of view\n  (like \"my data has a field 'Name' of type 'String'\") or/and from a low-level\n  point of view (like \"Use '+' to concat strings.\")\n* a WPF user control (using the language) with auto-completion and tooltips for\n  syntactical and semantical errors. The query can be typed in using the keyboard\n  OR by clicking all ingredients together.\n\nQuickstart\n----------\n\nFirst, installation\n\n```\nPM\u003e Install-Package CQL\n```\n\nSecond, let me shortly explain the concepts. You actually need to provide three objects:\n\n* the *query*, which can be edited by the user\n* the *context*, which contains all variables, that are accessible for the query\n* the *type system*, which setups the way the variables can be queried or can be combined\n\nThird, study the following code snippet:\n\n```csharp\n[CQLType(\"Ticket\", \"Object of interest.\")]\npublic class Ticket\n{\n\tpublic Ticket(int id, string owner)\n\t{\n\t\tthis.Id = id;\n\t\tthis.Owner = owner;\n\t}\n\n\t[CQLNativeMemberProperty(\"Id\", IdDelimiter.Dot)]\n\tpublic int Id { get; set; }\n\n\t[CQLNativeMemberProperty(\"Owner\", IdDelimiter.Dot)]\n\tpublic string Owner { get; set; }\n}\n...\nvar typeSystemBuilder = new TypeSystemBuilder();\ntypeSystemBuilder.AddFromScan(typeof(Ticket));\nvar typeSystem = typeSystemBuilder.Build();\n\n//DATA\nvar ticket1 = new Ticket() { Id = 123, Owner = \"Me\" };\nvar ticket2 = new Ticket() { Id = 124, Owner = \"Myself\" };\nvar ticket3 = new Ticket() { Id = 125, Owner = \"I\" };\n\n//QUERY\nvar context = new EvaluationScope(typeSystem);\nAssert.IsFalse(Queries.Evaluate(\"id \u003e 123\", ticket1, context));\nAssert.IsFalse(Queries.Evaluate(\"id \u003e 123 AND Owner = \\\"I\\\"\", ticket2, context));\nAssert.IsTrue(Queries.Evaluate(\"ID \u003e 123 AND oWnEr = \\\"I\\\"\", ticket3, context));\n```\n\nCurrent features\n----------------\n\n* configurable type system\n* configurable context\n* configurable WPF component (in progress!!!)\n\t* beginner mode\n\t* expert mode\n\t* auto completion\n\t* syntax highlighting\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotes%2Fcql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flotes%2Fcql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotes%2Fcql/lists"}