{"id":17151937,"url":"https://github.com/dancardin/query","last_synced_at":"2026-07-19T01:07:46.628Z","repository":{"id":151814831,"uuid":"46579082","full_name":"DanCardin/query","owner":"DanCardin","description":"SQL Query builder","archived":false,"fork":false,"pushed_at":"2015-11-25T22:03:04.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T17:44:40.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"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/DanCardin.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}},"created_at":"2015-11-20T18:19:38.000Z","updated_at":"2015-11-25T22:03:29.000Z","dependencies_parsed_at":"2023-04-14T05:31:54.227Z","dependency_job_id":null,"html_url":"https://github.com/DanCardin/query","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/DanCardin%2Fquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanCardin%2Fquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanCardin%2Fquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanCardin%2Fquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanCardin","download_url":"https://codeload.github.com/DanCardin/query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245273145,"owners_count":20588531,"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":[],"created_at":"2024-10-14T21:42:25.392Z","updated_at":"2025-10-10T08:12:24.184Z","avatar_url":"https://github.com/DanCardin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SQL Query Builder\n---\n\nThis modules defines a class which allow the building of SQL queries in a functional style.\n\nThis class lazily builds SQL queries. Each method called on the class returns another `Query` object which will only get evaluated once the `build` method is called.\n\nExample:\n```python\nq = Query('Person').select('id', 'age')\nfiltered = q.filter(name='Bill')\nname_ordered = (filtered\n    .select('name')\n    .order_by('name')\n    .build()\n)\nage_ordered = filtered.order_by('age').build()\n\nname_ordered == 'SELECT id, age, name FROM Person where name='Bill' ORDER BY name;'\n\nage_ordered == 'SELECT id, age FROM Person where name='Bill' ORDER BY age;'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdancardin%2Fquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdancardin%2Fquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdancardin%2Fquery/lists"}