An open API service indexing awesome lists of open source software.

https://github.com/takuya/php-pdo-where-helper


https://github.com/takuya/php-pdo-where-helper

Last synced: about 1 year ago
JSON representation

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();

```