Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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]
[Corion]: GrandFather: Yeah, I'm currently in the same situation - I get DOM node IDs from Chrome, except that they vanish at some point in time, or event, or whatever. My current workaround is to re-fetch the node IDs all the time, but that is slow

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-08-24 07:57 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (365 votes). Check out past polls.