dbTalk Databases Forums  

Storing Perl objects

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Storing Perl objects in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kynn@panix.com
 
Posts: n/a

Default Storing Perl objects - 02-08-2004 , 11:07 AM









I understand that PostgreSQL has OO capabilities. Is it possible to
store full-blown Perl objects in a PostgreSQL table? (I suppose that
one can always serialize Perl objects and store the serialized text,
but this is hardly OO.)

Thanks,

kynn


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #2  
Old   
joseph speigle
 
Posts: n/a

Default Re: Storing Perl objects - 02-08-2004 , 06:03 PM






Hi,

maybe SPOPS will work, which is an acronym for Simple Perl Object Persistence with Security
which wraps calls like 'fetch' and 'store', and the real code lies in your subclassing SPOPS implementing DBI specific methods for the Postgres DBI (i'd imagine). There are a few other modules on CPAN which you would probably also inherit from and override methods to get them to work.

Unfortunately, I don't know what OO capabilities PostgreSQL has on its own. I suppose that's what you're asking, though.

On Sun, Feb 08, 2004 at 12:07:30PM -0500, kynn (AT) panix (DOT) com wrote:
Quote:


I understand that PostgreSQL has OO capabilities. Is it possible to
store full-blown Perl objects in a PostgreSQL table? (I suppose that
one can always serialize Perl objects and store the serialized text,
but this is hardly OO.)

Thanks,

kynn


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org
--
joe speigle

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #3  
Old   
Josh Berkus
 
Posts: n/a

Default Re: Storing Perl objects - 02-08-2004 , 11:36 PM



Kynn,

Quote:
I understand that PostgreSQL has OO capabilities.
Nope! Bzzzzzzzz. Thank you for playing. ;-)

We are Object-Relational, not Object Oriented. Object-Relational has to do
with our custom data types, operators, aggregates, and table inheritance. It
is not OO, or even really analogous.

Quote:
Is it possible to
store full-blown Perl objects in a PostgreSQL table? (I suppose that
one can always serialize Perl objects and store the serialized text,
but this is hardly OO.)
I suggest using Alzabo. Look it up on Freshmeat.

--
Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match



Reply With Quote
  #4  
Old   
joseph speigle
 
Posts: n/a

Default Re: Storing Perl objects - 05-12-2004 , 11:18 AM



SPOPS, too
On Sun, Feb 08, 2004 at 09:36:45PM -0800, Josh Berkus wrote:
Quote:
Kynn,

I understand that PostgreSQL has OO capabilities.

Nope! Bzzzzzzzz. Thank you for playing. ;-)

We are Object-Relational, not Object Oriented. Object-Relational has to do
with our custom data types, operators, aggregates, and table inheritance. It
is not OO, or even really analogous.

Is it possible to
store full-blown Perl objects in a PostgreSQL table? (I suppose that
one can always serialize Perl objects and store the serialized text,
but this is hardly OO.)

I suggest using Alzabo. Look it up on Freshmeat.

--
Josh Berkus
Aglio Database Solutions
San Francisco

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
--
joe speigle
www.sirfsup.com

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.