Re: [Dbix-class] DBIx-Class Digest, Vol 176, Issue 1

2022-12-09 Thread Steve
If you use the convention: my $value = $row->colABC, then you'll get the inflated value, provided the column is defined as an object.  If you want the raw value, ask for $row->get_column('colABC'). On 12/9/2022 7:00 AM, dbix-class-requ...@lists.scsys.co.uk wrote: Send DBIx-Class mailing list

[Dbix-class] Calling new on a MooseX::NonMoose resultset fails

2013-08-19 Thread Steve Nolte
shoot: https://github.com/mcsnolte/dbic-moose-new-rs Thanks, Steve ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive:

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-1

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-1

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-1

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-1

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-1

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-1

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: [Dbix-class] Caching

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: [Dbix-class] Caching total_entires in the Pager --

2013-08-10 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: [Dbix-class] Caching total_entires in the Pager -- how can build a good cache ke

2013-08-09 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: [Dbix-class] Caching total_entires in the Pager -- how can build a good cache key?)))

2013-08-09 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: Out of office 10/4-10/5 (was: [Dbix-class] Caching total_entires in the Pager -- how can build a good cache key?))

2013-08-09 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Out of office 10/4-10/5 (was: [Dbix-class] Caching total_entires in the Pager -- how can build a good cache key?)

2013-08-09 Thread Steve
. -- Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ ___ List: http://lists.scsys.co.uk/cgi-bin

Re: [Dbix-class] Generating DISTINCT ON with sub query

2013-04-03 Thread Rippl, Steve
On Wed, Apr 3, 2013 at 8:55 AM, Peter Rabbitson wrote: > On Wed, Apr 03, 2013 at 08:41:05AM -0700, Rippl, Steve wrote: > > Have I given you enough info? > > I think so but I want to make sure I got it right. Tell me if the thing > below is correct: > > $course_section

Re: [Dbix-class] Generating DISTINCT ON with sub query

2013-04-03 Thread Rippl, Steve
On Wed, Apr 3, 2013 at 2:46 AM, Peter Rabbitson wrote: > On Tue, Apr 02, 2013 at 08:20:34PM -0700, Rippl, Steve wrote: > > I have something like the following > > > > $self->search( > > $search, > > { join =&

[Dbix-class] Generating DISTINCT ON with sub query

2013-04-02 Thread Rippl, Steve
ot;section_id" AS section_id, "me"."course_id", "staff"."name_first", "staff"."name_last", "course"."name" FROM "course_section" "me" JOIN "course" "course" ON &quo

[Dbix-class] Re: New many-to-many warnings

2012-12-10 Thread Rippl, Steve
OK, my bad! I had previously manually defined many-to-many relations for a couple of the tables and now they're being autogenerated with the same names. Sorry! On Thu, Dec 6, 2012 at 8:17 PM, Rippl, Steve wrote: > Hi, > > I have a Catalyst app using DBIx::Class and just upd

[Dbix-class] New many-to-many warnings

2012-12-06 Thread Rippl, Steve
new? I'm not seeing them in the schema but I suppose that's what the warning is telling me? Is it OK to just set DBIC_OVERWRITE_HELPER_METHODS_OK to true? Thanks, Steve -- Steve Rippl Technology Director Woodland Public Schools 360 841 2730

[Dbix-class] Re: Join Myself?

2012-07-07 Thread Steve Wells
On Fri, Jul 6, 2012 at 11:33 AM, Steve Wells wrote: > I'm trying to convert this SQL statement to DBIC and I'm failing miserably. Let me clarify a bit… Given this setup: http://stackoverflow.com/questions/1313120/retrieving-the-last-record-in-each-group it is possible to co

[Dbix-class] Join Myself?

2012-07-06 Thread Steve Wells
ble", { 'foreignkey' => 'foreignkey', 'date_added < date_added' }, { is_deferrable => 1, join_type => "LEFT", } ); I'm either missing something obvious or t

Re: [Dbix-class] set_on_create problem

2012-04-26 Thread Steve
Thank you very much! As a follow up, is there a way to have DBIC::Loader add this component? It seems like the 'components=TimeStamp' would have been enough, but this is obviously not the case. On 4/26/2012 2:43 AM, Peter Rabbitson wrote: Steve wrote: Hello, I have set up a

[Dbix-class] set_on_create problem

2012-04-25 Thread Steve
r me. Can anyone tell me what I'm missing, or if more info is needed? Thanks, Steve ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Re: [Dbix-class] multiple database connection

2011-10-21 Thread Rippl, Steve
min_create.pl model *RadiusDB* DBIC::Schema NetAdmin::RadiusSchema create=static components=TimeStamp 'dbi:Pg:dbname=radius;host=hostname2' 'username2' 'password2' '{ AutoCommit => 1 }' Then I use one conn

Re: [Dbix-class] Looking for a DBIC developer for new SaaS product

2011-07-29 Thread Steve
more about your requirements and the project to see whether I could be of help. Feel free to call my cell if you'd like to discuss this further. Steve Steve Schafer Matsch Systems Phone: 616-477-9629 Mobile: 616-304-9440 Email: st...@matsch.com Web: http://www.matsch.com/ On 7/28/20

Re: [Dbix-class] Multiple DBs, one Schema to rule them all

2011-02-28 Thread Steve
I second that thought. I was advised to do it this way from some experienced Catalyst-ers. On 2/28/2011 12:01 PM, Wes Cravens wrote: On 2/11/2011 7:20 PM, Trevor Leffler wrote: Hello, I am investigating whether DBIC has support for switching between logical databases (ala 'use db1; ...; use d

Re: [Dbix-class] Relationship question/database structure

2011-01-10 Thread Steve
i'm sure it will eventually be capable. Patch? ;) (okay, that would probably require a pretty significant level of changes...) David On Mon, Jan 10, 2011 at 1:18 PM, Steve <mailto:st...@matsch.com>> wrote: I was unclear... sorry for that. The current 'note' table has

Re: [Dbix-class] Relationship question/database structure

2011-01-10 Thread Steve
hat table. So, it is in fact a multi-column join between the note table and several other tables, each with their own 'TableName'. Steve On 1/10/2011 1:07 PM, David Ihnen wrote: A relational database cannot easy express foreign key constraints to multiple tables from a single column.

[Dbix-class] Relationship question/database structure

2011-01-10 Thread Steve
, user, device, etc. I am sure that this is a fairly common use case, but don't see much in the docs or on the list. The question is two-fold: What's the best structure, and how do we go about defining the DBIC rels? Thanks, Steve ___ List:

Re: [Dbix-class] Chained resultsets and WHERE operators

2010-11-09 Thread Steve
It appears that you are *not* chaining these resultsets... If you first do... # Narrow the search down if the start date is supplied. $date_ranges = $rs->search({ start_date => { '<=', $start_date }, end_date => { '>=', $start_date }, }) if $start_date; then in order to 'chain' you mus

Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-04 Thread Steve
On 8/4/2010 10:46 AM, fREW Schmidt wrote: On Wed, Aug 4, 2010 at 7:34 AM, Steve <mailto:st...@matsch.com>> wrote: Hi all, I am bewildered as to why my 'many_to_many' relationship is being ignored. I get an error when trying to u

Re: [Dbix-class] missing 'many-to-many' relationship

2010-08-04 Thread Steve
Hi all, I am bewildered as to why my 'many_to_many' relationship is being ignored. I get an error when trying to use the relationship because it 'does not exist', and clearly it doesn't. WHY? My result classes are 'User.pm', 'Role.pm', and 'UserRole.pm'. I'm using the DBIC::Loader to generate th

[Dbix-class] missing 'many-to-many' relationship

2010-08-03 Thread Steve
end of the package and interrogated the schema. I clearly see that the 'user_roles' relationship exists, but the 'roles' relationship does not. No syntax errors, all other relationships are being used successfully in the schema. Any clue as to why this relationship is not

[Dbix-class] Weird INSERT RETURNING error after updating to DBIx::Class .08123

2010-07-11 Thread Steve Kleiman
t; # only used when INSERT ... RETURNING is disabled > sub last_insert_id { > ... > } Seems to me I want to disable the RETURNING functionality to make the behavior like it was, but I can't figure out how to do that. Anyone else experienced this? Thanks in advance. -steve kleiman ___

[Dbix-class] Weird INSERT RETURNING error after updating to DBIx::Class .08121

2010-06-22 Thread Steve Kleiman
my database views to cater to this new change, but I haven't gotten anywhere. I see in DBIX::Class::Storage::DBI::Pg the comment: > # only used when INSERT ... RETURNING is disabled > sub last_insert_id { > ... > } Seems to me I want to d

[Dbix-class] Re: Insert into join table succeeds but issues error anyway

2010-04-16 Thread Steve
ore specific than "Re: Contents of DBIx-Class digest..." Today's Topics: 1. Insert into join table succeeds but issues error anyway (Steve) 2. Result Classes (Ben Hitz) 3. Jobs, jobs, jobs, and jobs (don't forget about jobs!) (fREW Schmidt) 4. can i add custom err

[Dbix-class] Insert into join table succeeds but issues error anyway

2010-04-15 Thread Steve
N KEY (`role_id`) REFERENCES `roles` (`id`)) [for Statement "INSERT INTO users_roles ( role_id, user_id) VALUES ( ?, ? )" with ParamValues: 0='HASH(0xb57f080)', 1='66'] at /home/steve/Catalyst/WebStmt/script/../lib/FSUstmt/Controller/WebUsers.pm line 109 The interesting thing

[Dbix-class] Re: Presentation about DBIx::Class

2010-01-26 Thread Steve
on between a Result and a ResultSet was puzzling. Especially when using D:C:Loader, as depending on the command line arguments, there may not be a Result directory, and there certainly won't be a ResultSet directory. The very fact that you don't have to have a Result

Re: [Dbix-class] Issue converting select/insert from DBI to DBIx::Class

2009-12-22 Thread Steve Bertrand
OutputOctets NASIPAddress /, ], }); $daily_fetch_rs->result_class( 'DBIx::Class::ResultClass::HashRefInflator' ); my $agg_table = $schema->re

[Dbix-class] Issue converting select/insert from DBI to DBIx::Class

2009-12-22 Thread Steve Bertrand
x27; },{ { sum => 'acctoutputoctets' }, 'nasipaddress', ], group_by => [ qw/ username nasipaddress / ], as => [ 'daily' ], }); Steve ___

Re: [Dbix-class] Dynamically removing an auto-increment column

2009-12-08 Thread Steve Bertrand
Peter Rabbitson wrote: > Steve Bertrand wrote: >> (Un)fortunately, this was a case of reading from a stale replicated >> MySQL server... > > Are you doing the reading manually or are you using the Replicated > storage driver? If the former - take a look at Replicated. If

Re: [Dbix-class] Dynamically removing an auto-increment column

2009-12-08 Thread Steve Bertrand
Dermot wrote: > 2009/12/8 Steve Bertrand : >> Hi everyone, > > Hi Steve, > >> I've just began using DBIx::Class late last week. Although I've got it >> doing pretty well everything I want, I'm quite overwhelmed by the amount >> of documentat

Re: [Dbix-class] Dynamically removing an auto-increment column

2009-12-08 Thread Steve Bertrand
Peter Rabbitson wrote: > Steve Bertrand wrote: >> For MySQL, I have to have the 'id' field populated with a null value >> when calling create() > > Why? Please explain. Well, I can explain that I've been at this for hours on end, and when I went to dig up the

[Dbix-class] Dynamically removing an auto-increment column

2009-12-08 Thread Steve Bertrand
t to insert if SQLite is being used? Regards, Steve ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

[Dbix-class] re: [Fwd: Count maxes out at 127]

2009-09-10 Thread Steve
ata and verified that the count should be more than 127. Out of 3000+ queries, about 40 were artificially limited to 127. Any thoughts? Steve --- End Message --- ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org

[Dbix-class] Count maxes out at 127

2009-09-10 Thread Steve
S NULL AND usagetype = ? ) AND me.subscriptionid = ? ) ) GROUP BY connecttonum: '6', 'C', '1' Other perhaps relevant details: Perl 5.8.8, MySQL 5.0.22, DBIx::Class .08107 I have done raw sql queries on the same data and verified that th

[Dbix-class] Searching members of class

2009-08-28 Thread Steve
lt' that will look in this table to find the one and only one record whose 'divisionname' is 'DEFAULT'?  FYI, I've successfully used this class to search the resultset, but don't see how to search within my own class.   Thanks in advance. Steve

[Dbix-class] different query after upgrade

2009-08-21 Thread Steve Rippl
grade, staffs.name_last, course_sections.section_id, staff_sections.section_id Everything is a LEFT JOIN now. How do I get back to the first one? What's changed? Any pointers would be much appreciated! Many thanks, Steve -- Steve Rippl Technology Director Woodland School District 360

[Dbix-class] InflateColumn::DateTime, inheritance, and insert/delete problems

2009-03-10 Thread Steve Caldwell
ike: package My::SchemaBase; use base 'DBIx::Class'; __PACKAGE__->load_components(qw/ InflateColumn::DateTime +My::Plugin::RowStuff Core /); sub insert { shift->next::method(@_) } sub delete

Re: [Dbix-class] Help with Arbitrary SQL through a custom ResultSource

2008-03-10 Thread Steve Kirkup
Matt S Trout wrote: On Mon, Mar 10, 2008 at 12:36:22PM -0700, Steve Kirkup wrote: I followed the cookbook for writing a custom ResultSource for executing custom sql. However when I run the code, it I get SQL errors, it looks like it concats my customer after the FROM keyword. My code

[Dbix-class] Help with Arbitrary SQL through a custom ResultSource

2008-03-10 Thread Steve Kirkup
e rather than try and force intergration with SQL::Abstract, at least in this case. Could someone help me out? Steve K ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.

Re: [Dbix-class] Oracle Column Quoting

2008-02-13 Thread Steve Kirkup
Jose, Thank you that was exactly what I needed. I think one of the problems with DBIx::Class is that the documentation and work is scattered among so many places it is hard to leap in and put it all together. Steve Kirkup Jose Fonseca wrote: Steve, I don't know what Gmail did to my

[Dbix-class] Oracle Column Quoting

2008-02-13 Thread Steve Kirkup
ample: SELECT 'me.level' FROM test me; The problem is that DBIx::Class does not do the single quoting by default and the single-quoting behavior, I don't believe, does not work for all databases. Does anyone have suggestions about how this problem could be addr

[Dbix-class] DBH handle upon connect

2008-02-12 Thread Steve Kirkup
of one being available. Steve Kirkup ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[EM

[Dbix-class] Primary key using a Sequence Generator

2008-02-08 Thread Steve Kirkup
Hello, Is there a clean way to override the insert() method to call a sequence generator for getting a primary key? I would assume it is possible, but I am unsure where it would go. Steve Kirkup ___ List: http://lists.scsys.co.uk/cgi-bin/mailman

[Dbix-class] DBIx::Class creating get_* and set_* methods

2008-02-07 Thread Steve Kirkup
' or 'set_' (depending on their functionality). # Accessor method $object->get_username; # mutator method $object->set_username('bob'); Has anyone done anything for this for DBIx::Class? Sincerely, Steve K _