Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038986
en ru br
Репозитории ALT

Группа :: Разработка/Perl
Пакет: perl-DBIx-Class-QueryLog

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Текущая версия: 1.005001-alt2
Время сборки: 21 марта 2016, 17:02 ( 418.4 недели назад )
Размер архива: 21.78 Kb

Домашняя страница:   https://github.com/frioux/DBIx-Class-QueryLog

Лицензия: perl
О пакете: Log queries for later analysis.
Описание:

DBIx::Class::QueryLog 'logs' each transaction and query executed so you can
analyze what happened in the 'session'.  It must be installed as the debugobj
in DBIx::Class:

   use DBIx::Class::QueryLog;
   use DBIx::Class::QueryLog::Analyzer;

   my $schema = ... # Get your schema!
   my $ql = DBIx::Class::QueryLog->new;
   $schema->storage->debugobj($ql);
   $schema->storage->debug(1);
     ... # do some stuff!
   my $ana = DBIx::Class::QueryLog::Analyzer->new({ querylog => $ql });
   my @queries = $ana->get_sorted_queries;

Every transaction and query executed will have a corresponding Transaction
and Query object stored in order of execution, like so:

   Query
   Query
   Transaction
   Query

This array can be retrieved with the log method.  Queries executed inside
a transaction are stored inside their Transaction object, not inside the
QueryLog directly.

See the DBIx::Class::QueryLog::Analyzer manpage for options on digesting the results
of a QueryLog session.

If you wish to have the QueryLog collecting results, and the normal trace
output of SQL queries from DBIx::Class, then set `passthrough' to 1

 $ql->passthrough(1);

Текущий майнтейнер: Igor Vlasenko

Список всех майнтейнеров, принимавших участие
в данной и/или предыдущих сборках пакета:

Список rpm-пакетов, предоставляемый данным srpm-пакетом:

  • perl-DBIx-Class-QueryLog
ACL:
     
    дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
    текущий майнтейнер: Michael Shigorin