[RDBO] New user and relationships

2005-10-24 Thread Sean Davis
I am a new user (as of about 2 hours ago). I have two tables that have a one-to-one relationship with a third (so, of course, there is a one-to-many from the third to the other two). The code looks like below. However, I get the following error message on compile and I do have foreign keys prese

Re: [RDBO] New user and relationships

2005-10-24 Thread Sean Davis
On 10/24/05 4:07 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 10/24/05, Sean Davis <[EMAIL PROTECTED]> wrote: >> I am a new user (as of about 2 hours ago). I have two tables that have a >> one-to-one relationship with a third (so, of course, there is a

[RDBO] "plugin" design

2005-10-25 Thread Sean Davis
I've used RDBO for less than 24 hours and I really like it so far. I was just curious what thoughts folks have about designing reusable "plugins" for RDBO. I'll admit that I haven't done my homework on this yet except to glance over CPAN and quickly browse the archives. Such capability is gettin

[RDBO] Many-to-many problem

2005-10-25 Thread Sean Davis
Using RDBO 0.78. Schema, class definitions, and class definitions are below. I get the following errors in executing the test code. Sorry to post so many questions in such a short period of time. No Rose::DB::Object-derived class found for catalog '' schema 'public' table 'g_main' at /Library/P

Re: [RDBO] "plugin" design

2005-10-26 Thread Sean Davis
On 10/25/05 11:01 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 10/25/05 6:54 AM, Sean Davis wrote: >> I've used RDBO for less than 24 hours and I really like it so far. I was >> just curious what thoughts folks have about designing reusable "

[RDBO] Support for views

2005-10-27 Thread Sean Davis
Is there support for views in RDBO (as in views in the database acting as tables, not as in "fake" views done in perl)? I don't see any and was just curious if I was missing something. Sean --- This SF.Net email is sponsored by the JBoss Inc.

Re: [RDBO] Support for views

2005-10-28 Thread Sean Davis
On 10/27/05 4:34 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 10/27/05, Sean Davis <[EMAIL PROTECTED]> wrote: >> Is there support for views in RDBO (as in views in the database acting as >> tables, not as in "fake" views done in perl)? I

Re: [RDBO] Support for views

2005-10-28 Thread Sean Davis
On 10/28/05 8:03 AM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 10/28/05 6:31 AM, Sean Davis wrote: >> On 10/27/05 4:34 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: >>> On 10/27/05, Sean Davis <[EMAIL PROTECTED]> wrote: >>>

Re: [RDBO] Support for views

2005-10-28 Thread Sean Davis
On 10/28/05 8:22 AM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 10/28/05 8:11 AM, Sean Davis wrote: >> Sorry. Re-reading, I did imply that it wasn't possible. What I meant was >> that one HAS to define the primary key explicitly > > Well, unl

Re: [RDBO] ANNOUNCE: Rose::DB::Object 0.081 released (with tutorial!)

2005-11-16 Thread Sean Davis
On 11/15/05 7:58 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > 0.081 (11.15.2005) - John Siracusa <[EMAIL PROTECTED]> > > * Tutorial added. A package that works is quite nice; one that works as the SPECTACULAR documentation says is even better! Thanks for the hard work Sean --

[RDBO] Loader and manager class methods

2005-11-28 Thread Sean Davis
I have a loader that loads a class My::DB::GMain associated with table g_main and seems to load My::DB::GMain::Manager. However, when I make this call: my @gmain = My::DB::GMain::Manager->get_gmains(query=>[gene_id=>672]); I get: Can't locate object method "get_gmains" via package "My::DB::GMa

Re: [RDBO] Loader and manager class methods

2005-11-28 Thread Sean Davis
On 11/28/05 11:54 AM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 11/28/05, Sean Davis <[EMAIL PROTECTED]> wrote: >> I have a loader that loads a class >> >> My::DB::GMain >> >> associated with table g_main and seems to load My

Re: [RDBO] Loader and manager class methods

2005-11-28 Thread Sean Davis
On 11/28/05 12:16 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 11/28/05, Sean Davis <[EMAIL PROTECTED]> wrote: >> My::DB::GMain is the class name, so I expected gmains. In practice, I >> looked a the loader code and it is using the ACTUAL table name

[RDBO] Another loader question

2005-11-28 Thread Sean Davis
John, Is there a way to pass the make_classes params via RDBO::Loader->new? Instead of doing: My $loader = RDBO::Loader->new() Then $loader->make_classes(include_tables => 'xyz') Doing something like: My $loader = RDBO::Loader->new(make_classes => {exclude_tables => 'xyz'}); $loader->make_c

Re: [RDBO] Another loader question

2005-11-28 Thread Sean Davis
On 11/28/05 1:21 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 11/28/05, Sean Davis <[EMAIL PROTECTED]> wrote: >> Is there a way to pass the make_classes params via RDBO::Loader->new? >> Instead of doing: >> >> My $loader = RDBO::Lo

Re: [RDBO] Another loader question

2005-11-28 Thread Sean Davis
On 11/28/05 1:52 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 11/28/05, Sean Davis <[EMAIL PROTECTED]> wrote: >> Ok. To be a bit more transparent, I have been working on a >> Catalyst::Model::RDBO (for my own use, anyway). I am simply modeling it on

[RDBO] Scaffolding from RDBO

2005-12-13 Thread Sean Davis
I am looking at needing to create a web-app that includes some scaffolding of RDBO classes. I would like to use catalyst (though I don't think the framework in important to the question). So, I have a couple of general questions--how do you envision integrating a rose::db::object with a rose::htm

Re: [RDBO] Scaffolding from RDBO

2005-12-13 Thread Sean Davis
On 12/13/05 6:28 AM, "Davis, Sean (NIH/NHGRI) [E]" <[EMAIL PROTECTED]> wrote: > I am looking at needing to create a web-app that includes some scaffolding > of RDBO classes. I would like to use catalyst (though I don't think the > framework in important to the question). So, I have a couple o

Re: [RDBO] Scaffolding from RDBO

2005-12-13 Thread Sean Davis
On 12/13/05 7:55 AM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 12/13/05 6:28 AM, Sean Davis wrote: >> how do you envision integrating a rose::db::object with a rose::html::object >> (in particular, a form)? The correspondence between html::object and >

[RDBO] Loader make_modules problem?

2006-01-04 Thread Sean Davis
Title: Loader make_modules problem? I have to start by saying that I really like the make_modules concept; I dreaded having to hand-edit multiple files for large changes in database schema, but having module code to customize is necessary for many apps; this approach is the best of both worlds.

Re: [RDBO] Loader make_modules problem?

2006-01-04 Thread Sean Davis
Sorry about the formatting as this came through. Let me know if you would like me to simply attach files of interest to reproduce the errors, etc. On 1/4/06 9:05 AM, "Sean Davis" <[EMAIL PROTECTED]> wrote: > I have to start by saying that I really like the make_modules c

Re: [RDBO] Loader make_modules problem?

2006-01-04 Thread Sean Davis
On 1/4/06 10:12 AM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 1/4/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> The resulting modules contain references to some modules that do not exist, >> it seems. For example, the Dog::DB::Dog module looks like

[RDBO] Find_or_create method

2006-01-04 Thread Sean Davis
I haven't seen a "find_or_create" method anywhere. I know there is a good reason why there isn't one (if there isn't one). It seems like a useful method to have when creating new related objects in multiple tables. Before I naively write my own, why is there not such a method? Thanks, Sean

Re: [RDBO] Find_or_create method

2006-01-04 Thread Sean Davis
On 1/4/06 4:50 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 1/4/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> I haven't seen a "find_or_create" method anywhere. I know there is a good >> reason why there isn't one (if there i

[RDBO] Another make_modules question

2006-01-06 Thread Sean Davis
My loader script: #!/usr/bin/perl use strict; use warnings; use lib '../lib'; use Rose::DB::Object::Loader; use Dog::DB; use Dog::DB::Base; my $loader = Rose::DB::Object::Loader->new( db => Dog::DB->new, class_prefix => 'Dog::DB', base_classes => 'Dog::DB

[RDBO] Catalyst model

2006-01-12 Thread Sean Davis
I am doing a BAD THING and cross-posting to this list and Catalyst, but it isn't exactly a catalyst issue, either. Feel free to ignore if too far astray. I have the following classes and ApacheAdmin::Model::DB is just for connecting to the database--nothing unusual there. With the test script at

Re: [RDBO] Catalyst model

2006-01-12 Thread Sean Davis
On 1/12/06 2:42 PM, "Cees Hek" <[EMAIL PROTECTED]> wrote: > On 1/12/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> Cannot load ApacheAdmin::Model::User without a primary key (username) with a >> non-null value or another unique key with at least one non-null

Re: [RDBO] Q: State of Oracle support

2006-01-24 Thread Sean Davis
On 1/24/06 10:39 AM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > > Anyway, like I said, baby steps. Start by implementing the Rose::DB > public API in a new Rose::DB::Oracle module. While that's happening, > it'd be great iif someone could post the various Oracle-isms discussed > above to th

Re: [RDBO] Catalyst::Model::RDBO ?

2006-03-09 Thread Sean Davis
On 3/8/06 10:24 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 3/8/06 10:11 PM, Nilson Santos Figueiredo Junior wrote: >> It's usually simple glue code and without it, things get less coherent. >> You get one nice thing, though: $c->model('Artist') (where $c is the >> Catalyst context obje

Re: [RDBO] Catalyst::Model::RDBO ?

2006-03-09 Thread Sean Davis
On 3/9/06 3:56 PM, "Rob Kinyon" <[EMAIL PROTECTED]> wrote: > On 3/8/06, John Siracusa <[EMAIL PROTECTED]> wrote: >> Do many people use the helpers and scaffolding? I always imagined that >> people might use those to play with, but then write stuff form scratch when >> creating their first real

[RDBO] Reusing Rose::DB::Objects

2006-03-22 Thread Sean Davis
I would like to do a large amount of read->parse->store operations. In short, I have a large text file with one record per line. To speed things up, I have seen others "reuse" objects rather than allocating new ones for each record. Can I safely do this with Rose::DB::Objects? Is it as simple a

[RDBO] Postgres and bytea columns

2006-03-22 Thread Sean Davis
I have a simple table description for storing files. I store the files in the "contents" column. I also have a simple RDBO class that autoinitializes from the database. The output of the meta->perl_class_definition is given below the table definition. Why is the type for "contents" a scalar? I

Re: [RDBO] Postgres and bytea columns

2006-03-22 Thread Sean Davis
On 3/22/06 1:36 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 3/22/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> Why is the type for "contents" a scalar? > > Because that's the default when there is not a more specific RDBO > column

Re: [RDBO] Postgres and bytea columns

2006-03-22 Thread Sean Davis
On 3/22/06 2:39 PM, "Sean Davis" <[EMAIL PROTECTED]> wrote: > > > > On 3/22/06 1:36 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > >> On 3/22/06, Sean Davis <[EMAIL PROTECTED]> wrote: >>> Why is the type for "conte

Re: [RDBO] Postgres and bytea columns

2006-03-22 Thread Sean Davis
On 3/22/06 21:31, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 3/22/06 8:48 PM, John Siracusa wrote: >> Looking here: >> >> http://www.postgresql.org/docs/8.1/interactive/datatype-binary.html >> >> it seems that there's already an ASCII-ified format for bytea columns. > > Furthermore, byt

Re: [RDBO] pulling info on a dependent class

2006-05-25 Thread Sean Davis
Not sure if this covers it, but did you look at this: http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.727/lib/Rose/DB/Object/Tu torial.pod#Auto-joins_and_other_Manager_features Sean On 5/25/06 12:46 PM, "Jonathan Vanasco" <[EMAIL PROTECTED]> wrote: > > i have the 2 packages below > Asset

[RDBO] DDL from classes

2006-06-29 Thread Sean Davis
John, Are you planning on methods for generating DDL from classes? Just curious. Sean Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based

Re: [RDBO] ANNOUNCE: Rose::DB::Object 0.74 released

2006-07-03 Thread Sean Davis
I can confirm it (Rose::DB), also on Mac OS 10.4.6, so it isn't "just you" Sean On 7/3/06 2:04 PM, "Jonathan Vanasco" <[EMAIL PROTECTED]> wrote: > I can't get this to build on Mac OSX 10.4 > > does anyone have any suggestions? > > == > t/subclass-pg.ok 91/230 > t/subcl

[RDBO] Rose::HTML::object integration with Rose::DB::Object

2006-07-21 Thread Sean Davis
Has anyone built any tools for automating Rose::HTML::Object form classes from Rose::DB::Object classes? In principle, it shouldn't be too hard to do, but I just wanted to see if someone had already gone ahead with this, before I start down the road of making my own. Thanks, Sean --

[RDBO] AutoCommit and Postgres

2006-07-25 Thread Sean Davis
I have a set of classes and am finding that I need to do an explicit commit despite a Rose::DB subclass that is given below. Is this a normal behavior, as from the docs, it appears that the AutoCommit should default to 1 and even with it set explicitly as below, it still requires a commit to get i

Re: [RDBO] AutoCommit and Postgres

2006-07-25 Thread Sean Davis
On 7/25/06 12:49 PM, "Sean Davis" <[EMAIL PROTECTED]> wrote: > I have a set of classes and am finding that I need to do an explicit commit > despite a Rose::DB subclass that is given below. Is this a normal behavior, > as from the docs, it appears that the AutoCommi

Re: [RDBO] AutoCommit and Postgres

2006-07-25 Thread Sean Davis
On 7/25/06 1:00 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 7/25/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> I have a set of classes and am finding that I need to do an explicit commit >> despite a Rose::DB subclass that is given below. Is this a

[RDBO] Variable Rose::DB connection parameters

2006-08-07 Thread Sean Davis
I am trying to write some code to access a publicly available data source. It consists of a few dozen different databases (mysql), all with the same table structure, pretty much. I would also like to allow users to query a local mirror of the data source, as well. Therefore, I would like to make

Re: [RDBO] Variable Rose::DB connection parameters

2006-08-07 Thread Sean Davis
On 8/7/06 1:31 PM, "Sean Davis" <[EMAIL PROTECTED]> wrote: > I am trying to write some code to access a publicly available data source. > It consists of a few dozen different databases (mysql), all with the same > table structure, pretty much. I would also like

Re: [RDBO] Variable Rose::DB connection parameters

2006-08-07 Thread Sean Davis
On 8/7/06 4:04 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 8/7/06 3:40 PM, Sean Davis wrote: >> On 8/7/06 1:31 PM, "Sean Davis" <[EMAIL PROTECTED]> wrote: >>> I am trying to write some code to access a publicly available data source.

Re: [RDBO] Variable Rose::DB connection parameters

2006-08-07 Thread Sean Davis
On 8/7/06 4:27 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 8/7/06 4:14 PM, Sean Davis wrote: >> This is what I thought of first, but the user of a "mirror" or "local" >> database will want to set up his/her username/password, hostname

Re: [RDBO] RDBO and Catalyst

2006-08-15 Thread Sean Davis
On 8/14/06 10:32 PM, "Danial Pearce" <[EMAIL PROTECTED]> wrote: > Hey all, > > Has there been any work done previously with RDBO and Catalyst? I have > my catalyst jigger up and running with my RDBO model(s) already. But > Catalyst has so many helpers for scaffolding and such where your model

Re: [RDBO] Relationships under MySQL

2006-09-18 Thread Sean Davis
On Monday 18 September 2006 07:47, James Masters wrote: > I am rather amateur when it comes to OO methodology. If I don't use Loader > to define my table classes, then it appears that I have to create a whole > load of .pm files, one per table. Or if I do use Loader, then I have to > create a di

Re: [RDBO] How to do locking with RDBO?

2006-12-05 Thread Sean Davis
On Tuesday 05 December 2006 08:19, Michael Lackhoff wrote: > Hello, > > I need some pseudo-unique numbers like invoice numbers. They start every > year with 1, so autoincrement won't work. My idea was to use a helper > table with just just two fields 'year' and 'last_used_number'. Is it > enough to

Re: [RDBO] suggestions for enchancement

2007-11-27 Thread Sean Davis
On Nov 27, 2007 3:19 PM, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Nov 27, 2007 2:41 PM, maxim <[EMAIL PROTECTED]> wrote: > > its useful when you have XML based framework where your backend is > > trying to reflect some XML schema and you dont what to remap XML on the DB > > schema but just us