PHP Class 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.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Blackhole
Mostra file Open project: gabordemooij/redbean

Public Methods

Method Description
testGlue ( ) : void Tests whether we can intelligently glue together SQL snippets.

Method Details

testGlue() public method

Tests whether we can intelligently glue together SQL snippets.
public testGlue ( ) : void
return void