Granada\ORM::get_query_log PHP Method

get_query_log() public static method

Only works if the 'logging' config option is set to true. Otherwise, returned array will be empty.
public static get_query_log ( string $connection_name = self::DEFAULT_CONNECTION )
$connection_name string Which connection to use
    public static function get_query_log($connection_name = self::DEFAULT_CONNECTION)
    {
        if (isset(self::$_query_log[$connection_name])) {
            return self::$_query_log[$connection_name];
        }
        return array();
    }
ORM