Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re:{3} db schema modules, recommendations?

by jeroenes (Priest)
on Jul 10, 2001 at 12:11 UTC ( #95253=note: print w/replies, xml ) Need Help??

in reply to Re: Re: db schema modules, recommendations?
in thread db schema modules, recommendations?

I'm curious just why you want to write the database design in perl.

I'd write that in SQL with the CREATE commands, and just update that SQL and rerun when something needs to be adapted. Unless you routinely have to change the database structure, than you're better off with controlling these things in perl. I have only experience with writing the basic structure once and after that expanding it occasionally.

Is there something in your application that calls for a dynamic database structure?

For example, backing up. I have a cron job that runs Postgres' pg_dump to dump all data in my database and saves it on another server. That doesn't include the blobs, and so I have a separate perlscript that dumps all blobs and puts them in a tgz that is transferred to the other server. There is a script available that can restore the blobs may the need arise. These are just some bashscripts, whith perl doing the more difficult tricks. The perlscript could also have been written in bash and sql, but perl is the more elegant glue in this case.

  • Comment on Re:{3} db schema modules, recommendations?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://95253]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-05-25 22:36 GMT
Find Nodes?
    Voting Booth?