{"id":13483845,"url":"https://github.com/izniburak/query-builder","last_synced_at":"2026-02-01T07:32:33.934Z","repository":{"id":81785006,"uuid":"65303191","full_name":"izniburak/query-builder","owner":"izniburak","description":"sql query builder library for crystal-lang","archived":false,"fork":false,"pushed_at":"2018-11-18T21:45:24.000Z","size":39,"stargazers_count":48,"open_issues_count":2,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-30T17:48:18.267Z","etag":null,"topics":["crystal","query-builder","sql"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/izniburak.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}},"created_at":"2016-08-09T14:48:26.000Z","updated_at":"2024-04-05T15:31:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"598513ec-4c95-480b-af18-a23f4999c6f1","html_url":"https://github.com/izniburak/query-builder","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fquery-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fquery-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fquery-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izniburak%2Fquery-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izniburak","download_url":"https://codeload.github.com/izniburak/query-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245871682,"owners_count":20686246,"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":["crystal","query-builder","sql"],"created_at":"2024-07-31T17:01:15.912Z","updated_at":"2026-02-01T07:32:33.927Z","avatar_url":"https://github.com/izniburak.png","language":"Crystal","funding_links":[],"categories":["Search"],"sub_categories":[],"readme":"# query-builder\n\n```\n                                         _           _ _     _           \n                                        | |         (_) |   | |          \n   __ _ _   _  ___ _ __ _   _   ______  | |__  _   _ _| | __| | ___ _ __\n  / _` | | | |/ _ \\ '__| | | | |______| | '_ \\| | | | | |/ _` |/ _ \\ '__|\n | (_| | |_| |  __/ |  | |_| |          | |_) | |_| | | | (_| |  __/ |   \n  \\__, |\\__,_|\\___|_|   \\__, |          |_.__/ \\__,_|_|_|\\__,_|\\___|_|   \n     | |                 __/ |                                           \n     |_|                |___/                                            \n```\n\n[![Build Status](https://travis-ci.org/izniburak/query-builder.svg?branch=master)](https://travis-ci.org/izniburak/query-builder)\n\nsql query builder library for crystal-lang\n\n\n## Installation\n\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  query-builder:\n    github: izniburak/query-builder\n```\n\n\n## Usage\n\n\n```crystal\nrequire \"query-builder\"\nbuilder = Query::Builder.new\n\np builder.table(\"test\").where(\"id\", 17).or_where(\"language\", \"crystal\").get\n\n# Output:\n# \"SELECT * FROM test WHERE id = '17' OR language = 'crystal' LIMIT 1\"\n\n\np builder.table('test').select('id, title, status').order_by('id', 'desc').limit(10).get_all\n# Output:\n# \"SELECT id, title, status FROM test ORDER BY id DESC LIMIT 10\"\n```\n\n\n## Docs\n\nDocumentation Page: [query-builder Docs](https://github.com/izniburak/query-builder/blob/master/DOCS.md)\n\n\n## Contributing\n\n1. Fork it ( https://github.com/izniburak/query-builder/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n\n## Contributors\n\n- [izniburak](https://github.com/izniburak) İzni Burak Demirtaş - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizniburak%2Fquery-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizniburak%2Fquery-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizniburak%2Fquery-builder/lists"}