diff --git a/src/Database/Query/FMBaseBuilder.php b/src/Database/Query/FMBaseBuilder.php index 6659cc4..61d717c 100644 --- a/src/Database/Query/FMBaseBuilder.php +++ b/src/Database/Query/FMBaseBuilder.php @@ -1077,4 +1077,17 @@ public function getCountForPagination($columns = ['*']) { return $this->count($columns); } + + public function toRawSql(): string + { + $this->computeWhereIns(); + + return json_encode($this->wheres); + } + + public function toSql(): string + { + + return $this->toRawSql(); + } }