Exemple #1
0
 /**
  * Wrapper method to execute sql through the databse adapter
  * @param string $sql
  */
 public static function execute($sql)
 {
     if (static::$show_sql) {
         echo $sql . "\n\n";
     }
     $query = NimbleRecord::execute($sql, true);
     return $query;
 }