Skip to content

Commit 12c3048

Browse files
committed
Add Expression class
1 parent d592970 commit 12c3048

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/TgDatabase/Expression.php

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace TgDatabase;
4+
5+
/**
6+
* An object-oriented representation of a select clause part in a Query.
7+
* Built-in select types are provided by the Projections factory class. This interface
8+
* might be implemented by application classes that define custom select component.
9+
*/
10+
interface Expression {
11+
12+
/**
13+
* Render the SQL fragment.
14+
* @param Query $localQuery - local query object (e.g. subquery)
15+
* @param Query $overallQuery - overall query object
16+
* @return string - the SQL fragment representing this component.
17+
*/
18+
public function toSqlString($localQuery, $overallQuery);
19+
20+
}

0 commit comments

Comments
 (0)