https://github.com/takuya/php-pdo-where-helper
https://github.com/takuya/php-pdo-where-helper
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/takuya/php-pdo-where-helper
- Owner: takuya
- License: gpl-3.0
- Created: 2021-07-04T15:48:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-13T13:27:59.000Z (almost 5 years ago)
- Last Synced: 2025-02-09T01:14:04.122Z (over 1 year ago)
- Language: PHP
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-pdo-where-helper
極力、外部依存を減らしてぱぱっとSQLをビルドして検索できるようにした。
SQL実行ではprepare書く必要があるが、Prepareを書くとソースコードが煩雑になるのでなるべく隠蔽するようにした。
SQLの実行結果を再利用することでキャッシュしてパフォーマンスを上げるようにしてある。
## examples
```php
Where('kana','like','%きょう%')
->Limit(1)
->OrderBy('id', 'desc')
->fetchRows();
```