Пример #1
0
 /**
  * Use this to quickly convert your function to sql without having to do complicated code
  *
  * @param $builder       Columns
  * @param $property_path string
  * @param $sql_function  string
  * @param $args          mixed[]
  * @return string
  */
 protected function quickSql(Columns $builder, $property_path, $sql_function, $args = [])
 {
     $sql = $sql_function . '(' . $builder->buildColumn($property_path);
     foreach ($args as $arg) {
         $sql .= ', ' . Value::escape($arg);
     }
     return $sql . ')' . ($builder->resolve_aliases ? ' AS ' . BQ . $property_path . BQ : '');
 }
Пример #2
0
 /**
  * @return Joins
  */
 public function getJoins()
 {
     return $this->columns_builder->getJoins();
 }