We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d592970 commit 12c3048Copy full SHA for 12c3048
src/TgDatabase/Expression.php
@@ -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