{"id":24976893,"url":"https://github.com/rezigned/sql-builder","last_synced_at":"2025-03-29T08:24:19.703Z","repository":{"id":1998783,"uuid":"2932000","full_name":"rezigned/SQL-Builder","owner":"rezigned","description":"Sql builder is a library that helps you create SQL statement in a simpler style.","archived":false,"fork":false,"pushed_at":"2013-01-08T05:27:54.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T22:59:19.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Sharagoz/rails_exception_handler","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rezigned.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}},"created_at":"2011-12-07T11:07:47.000Z","updated_at":"2024-12-25T15:17:55.000Z","dependencies_parsed_at":"2022-08-20T12:51:01.269Z","dependency_job_id":null,"html_url":"https://github.com/rezigned/SQL-Builder","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/rezigned%2FSQL-Builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2FSQL-Builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2FSQL-Builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2FSQL-Builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rezigned","download_url":"https://codeload.github.com/rezigned/SQL-Builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246158274,"owners_count":20732757,"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":"2025-02-03T22:59:32.302Z","updated_at":"2025-03-29T08:24:19.680Z","avatar_url":"https://github.com/rezigned.png","language":"PHP","readme":"SQL-Builder\n===========\n\nSql builder is the library that help you create SQL statement in a simpler style.\n\nExample usage\n\n```php\n\u003c?php\n\n $q = new SQLBuilder('users', 'u')\n \n # Simple where clause condition\n $q-\u003efilter('username', 'admin')\n $q-\u003eto_sql() will compose an sql \n # \u003e\u003e SELECT * FROM users u WHERE username=?\n  \n # More complex where condition\n $q-\u003efilter('date_created', '\u003c', time())\n $q-\u003eto_sql() \n # \u003e\u003e SELECT * FROM users u WHERE date_created \u003c ?\n \n # Arbitary condition\n $q-\u003efilter('u.setting_id IS NOT NULL')\n # \u003e\u003e SELECT * FROM users u WHERE u.setting IS NOT NUL\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezigned%2Fsql-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frezigned%2Fsql-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezigned%2Fsql-builder/lists"}