{"id":15917547,"url":"https://github.com/takuya/php-pdo-where-helper","last_synced_at":"2025-04-03T11:41:52.163Z","repository":{"id":136551351,"uuid":"382890066","full_name":"takuya/php-pdo-where-helper","owner":"takuya","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-13T13:27:59.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T01:14:04.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-04T15:48:58.000Z","updated_at":"2021-08-13T13:28:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"7aeb6556-5611-4fbe-b778-3fca127adfec","html_url":"https://github.com/takuya/php-pdo-where-helper","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"de44a785c075fde07ac9ceba8cc98998346ab0d5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-pdo-where-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-pdo-where-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-pdo-where-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fphp-pdo-where-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/php-pdo-where-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998100,"owners_count":20866690,"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-06T18:11:21.883Z","updated_at":"2025-04-03T11:41:52.142Z","avatar_url":"https://github.com/takuya.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-pdo-where-helper\n\n極力、外部依存を減らしてぱぱっとSQLをビルドして検索できるようにした。\n\nSQL実行ではprepare書く必要があるが、Prepareを書くとソースコードが煩雑になるのでなるべく隠蔽するようにした。\n\nSQLの実行結果を再利用することでキャッシュしてパフォーマンスを上げるようにしてある。\n\n\n\n## examples \n\n```php\n\u003c?php\n    $dsn = \"sqlite:pref.sqlite\";\n    $table = new \\PrefSearchService($dsn);\n    $ret = $table-\u003eWhere('kana','like','%きょう%')\n      -\u003eLimit(1)\n      -\u003eOrderBy('id', 'desc')\n      -\u003efetchRows();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-pdo-where-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fphp-pdo-where-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fphp-pdo-where-helper/lists"}