Skip Menu |
 

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 103860
Status: rejected
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: kes-kes [...] yandex.ru
Cc: ether [...] cpan.org
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: allow asterisk for all columns
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-3483-1429633520-1769.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 405
Download (untitled) / with headers
text/plain 405b
'+columns' => [ 'addresses.ip' ] cause structure like: { ... addresses => { ip => "173.234.209.17" }, } Is it possible that '+columns' => [ 'addresses.*' ] will result: { ... addresses => { ip => "173.234.209.17", some_column => 'value', ... }, } and not: { ... addresses => { * => 34322 }, } This will not distrub me to enumerate all columns in this query when DB is changed. Thank you.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-3483-1429633520-1769.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-3483-1429633520-1769.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-1065-1430926162-581.103860-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 560
Download (untitled) / with headers
text/plain 560b
On Tue Apr 21 18:25:20 2015, kes-kes@yandex.ru wrote: Show quoted text
> > This will not distrub me to enumerate all columns in this query when > DB is changed.
This kind of approach is generally an antipattern from a design perspective. I am very reluctant to add this kind of support - suboptimal approaches should not be made easier for the end user. Is there a reason you can't ask the source for the currently defined column set as described here: https://metacpan.org/pod/DBIx::Class::ResultSet#prefetch (pay attention to the (->source/->related_source)->columns )
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-3483-1429633520-1769.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-3483-1429633520-1769.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-19981-1431025764-73.103860-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 82
Please let me know if the suggestion meets your needs, so I can close this ticket.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-19981-1431025764-73.103860-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: API
References: <rt-4.0.18-3483-1429633520-1769.0-0-0 [...] rt.cpan.org> <rt-4.0.18-19981-1431025764-73.103860-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-11914-1431092214-814.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.18-11914-1431092214-324.103860-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
From: kes-kes [...] yandex.ru
Content-Length: 226
Download (untitled) / with headers
text/plain 226b
just sugar as everything in perl. * vs { +{ "cds.genre.$_" => "genre.$_" } } $schema->source('Artist')->related_source('cds')->related_source('genre')->columns to much coding, So more chances to make mistake/bugs
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-11914-1431092214-814.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: API
References: <rt-4.0.18-3483-1429633520-1769.0-0-0 [...] rt.cpan.org> <rt-4.0.18-19981-1431025764-73.103860-0-0 [...] rt.cpan.org> <rt-4.0.18-11914-1431092214-814.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-6407-1431092362-58.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.18-6407-1431092362-624.103860-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
From: kes-kes [...] yandex.ru
Content-Length: 63
I copy-past that over and over and it starts to make troubles
MIME-Version: 1.0
X-Spam-Status: No, score=-5.083 tagged_above=-99.9 required=10 tests=[AWL=0.817, BAYES_00=-1.9, FROM_OUR_RT=-4] autolearn=ham
In-Reply-To: <rt-4.0.18-11914-1431092214-1704.103860-5-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-103860 [...] rt.cpan.org> <rt-4.0.18-3483-1429633520-1769.103860-5-0 [...] rt.cpan.org> <rt-4.0.18-19981-1431025764-73.103860-5-0 [...] rt.cpan.org> <rt-4.0.18-11914-1431092214-1704.103860-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <554CBCB3.6010701 [...] cpan.org>
content-type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.083
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 8E912240397 for <cpan-bug+DBIx-Class [...] hipster.bestpractical.com>; Fri, 8 May 2015 09:40:22 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7+30EswxZh3u for <cpan-bug+DBIx-Class [...] hipster.bestpractical.com>; Fri, 8 May 2015 09:40:21 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B8F712400D8 for <bug-DBIx-Class [...] rt.cpan.org>; Fri, 8 May 2015 09:40:20 -0400 (EDT)
Received: (qmail 13641 invoked by alias); 8 May 2015 13:40:18 -0000
Received: from mujunyku.leporine.io (HELO mujunyku.leporine.io) (113.212.96.195) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 08 May 2015 06:40:12 -0700
Received: from [10.0.13.10] (unknown [10.0.13.10]) by mujunyku.leporine.io (Postfix) with ESMTP id 8A8DC12A0BC for <bug-DBIx-Class [...] rt.cpan.org>; Fri, 8 May 2015 13:40:05 +0000 (UTC)
Delivered-To: cpan-bug+DBIx-Class [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0
Subject: Re: [rt.cpan.org #103860] allow asterisk for all columns
Return-Path: <ribasushi [...] cpan.org>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+DBIx-Class [...] hipster.bestpractical.com
X-RT-Mail-Extension: dbix-class
Date: Fri, 08 May 2015 15:40:03 +0200
X-Spam-Level:
To: bug-DBIx-Class [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Peter Rabbitson <ribasushi [...] cpan.org>
RT-Message-ID: <rt-4.0.18-6408-1431092423-660.103860-0-0 [...] rt.cpan.org>
Content-Length: 484
Download (untitled) / with headers
text/plain 484b
On 05/08/2015 03:36 PM, Eugen Konkov via RT wrote: Show quoted text
> Queue: DBIx-Class > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=103860 > > > just sugar as everything in perl.
DBIx::Class itself is a low-level library which prioritizes completeness over sugar. Please consider implmenting extra sugar-syntax as a separate ResultSet component *OR* pitch it to some of the sugar module (e.g. DBIC::Helpers). The requested feature will not be implemented in-core, sorry.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-6408-1431092423-660.103860-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: API
References: <RT-Ticket-103860 [...] rt.cpan.org> <rt-4.0.18-3483-1429633520-1769.103860-5-0 [...] rt.cpan.org> <rt-4.0.18-19981-1431025764-73.103860-5-0 [...] rt.cpan.org> <rt-4.0.18-11914-1431092214-1704.103860-5-0 [...] rt.cpan.org> <554CBCB3.6010701 [...] cpan.org> <rt-4.0.18-6408-1431092423-660.103860-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-27475-1431092632-1866.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.18-27475-1431092633-1713.103860-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
From: kes-kes [...] yandex.ru
Content-Length: 157
Download (untitled) / with headers
text/plain 157b
All is OK. I understand ;-) PS. I want ask you something, this not belongs to theme. I will send email to "Peter Rabbitson <ribasushi@cpan.org>" directly.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.