We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe394a commit d14822dCopy full SHA for d14822d
src/Query.php
@@ -133,6 +133,26 @@ public function collect()
133
return $this->execute();
134
}
135
136
+ public function max(string $column)
137
+ {
138
+ $c = clone $this;
139
+ $c->columns([
140
+ "c" => new Expression("max($column)")
141
+ ]);
142
+ $sql = $c->getSqlString($this->schema->getPlatform());
143
+ return $this->schema->query($sql)->fetchColumn(0);
144
+ }
145
+
146
+ public function min(string $column)
147
148
149
150
+ "c" => new Expression("min($column)")
151
152
153
154
155
156
157
public function execute(array $input_parameters = [])
158
{
0 commit comments