Bugzilla – Attachment 123151 Details for
Bug 28306
Allow to query database with minimal memory footprint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28306: Fix POD
Bug-28306-Fix-POD.patch (text/plain), 1.37 KB, created by
Kyle M Hall (khall)
on 2021-07-23 19:25:01 UTC
(
hide
)
Description:
Bug 28306: Fix POD
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-07-23 19:25:01 UTC
Size:
1.37 KB
patch
obsolete
>From 9c9d81bb47c177c6d460c9f4c5e0ce42fac671c9 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 23 Jul 2021 15:19:30 -0400 >Subject: [PATCH] Bug 28306: Fix POD > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > Koha/Database.pm | 21 +++++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) > >diff --git a/Koha/Database.pm b/Koha/Database.pm >index 2dc5101a83..0cedcf99ad 100644 >--- a/Koha/Database.pm >+++ b/Koha/Database.pm >@@ -37,12 +37,25 @@ use Koha::Config; > > our $database; > >-# FIXME: It is useless to have a Koha::Database object since all methods >-# below act as class methods >-# Koha::Database->new->schema is exactly the same as Koha::Database->schema >-# We should use Koha::Database->schema everywhere and remove the `new` method >+=head2 new >+ >+ $schema = Koha::Database->new->schema; >+ >+ FIXME: It is useless to have a Koha::Database object since all methods >+ below act as class methods >+ Koha::Database->new->schema is exactly the same as Koha::Database->schema >+ We should use Koha::Database->schema everywhere and remove the `new` method >+ >+=cut >+ > sub new { bless {}, shift } > >+=head2 dbh >+ >+ Returns a database handler without loading the DBIx::Class schema. >+ >+=cut >+ > sub dbh { > my $config = Koha::Config->get_instance; > my $driver = db_scheme2dbi($config->get('db_scheme')); >-- >2.30.1 (Apple Git-130)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28306
:
120752
|
120794
|
123145
|
123148
|
123149
|
123150
| 123151 |
124274
|
124282