PHP 클래스 RedUNIT\Blackhole\Glue
RedBeanPHP does NOT parse entire queries and it does not
ship with a query builder. However because RedBeanPHP
facilitates mixing-in SQL snippets using methods like
find(), via(), with(), withCondition() and so on...,
it needs to be able to figure out how two query part strings
can be connected to eachother. In particular parts beginning with or
without 'WHERE', 'AND' and 'OR'. This test checks whether the
QueryWriter has the ability to glue together query parts correctly.
The gluer is part of the QueryWriter, however since this narrow
slice of SQL syntax is so generic it's been implemented at Writer
level and all drivers in RedBeanPHP inherit the generic implementation.
At the moment of writing no additional glue methods had to be
implemented.
파일 보기
프로젝트 열기: gabordemooij/redbean
공개 메소드들
메소드 |
설명 |
|
testGlue ( ) : void |
Tests whether we can intelligently glue together SQL snippets. |
|
메소드 상세
Tests whether we can intelligently glue together SQL snippets.