DBD::Go...rt::null(3)
β¨ NAME β¨
DBD::Gofer::Transport::null β the DBD::Gofer client transport that exists purely for testing, bestie π
πΈ SYNOPSIS πΈ
okay so you can just plug it straight into your connect call:
my $original_dsn = "..."
DBI->connect("dbi:Gofer:transport=null;dsn=$original_dsn",...)
or, if you'd rather flip it on globally, set the DBI_AUTOPROXY environment variable and let it cook π₯:
export DBI_AUTOPROXY="dbi:Gofer:transport=null"
π¦ DESCRIPTION π¦
So basically: you connect through DBD::Gofer, but every single request gets executed within the same process. Same vibe, zero network, no cap π«Ά
It's a quick and simple way to test your apps for compatibility with the (few) restrictions that DBD::Gofer imposes. Like, does your code survive Gofer's rules? Run it through here and find out.
It also gives the DBI test suite a simple, portable way to test DBD::Gofer on all platforms with no setup. Iconic, honestly π
And here's the third thing β it's lowkey a measurement tool π. By measuring the difference in performance between normal connections and connections via "dbi:Gofer:transport=null", you can measure the basic cost of using DBD::Gofer. And then, the additional cost of more advanced transports can be isolated by comparing their performance with the null transport. Science, but make it DBI π§ͺβ¨
The t/85gofer.t script in the DBI distribution includes a comparative benchmark, if you wanna see it in action.
π AUTHOR π
Tim Bunce, <http://www.tim.bunce.name>
π LICENCE AND COPYRIGHT π
Copyright (c) 2007, Tim Bunce, Ireland. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
π SEE ALSO π
DBD::Gofer::Transport::BaseDBD::Gofer
and that's the whole page, bestie, we ate π
β¨ this was pulled from the User Contributed Perl Documentation for DBD::Go...rt::null(3), perl v5.42.3, dated 2026-10-19 β go forth and test responsibly π¦π
π¦ where this page comes from
- fedora 43: perl-DBI 1.656-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-DBI 1.656-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms