Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: How to structure applications using a RDBMS

by toma (Vicar)
on Jul 19, 2002 at 07:58 UTC ( #183162=note: print w/replies, xml ) Need Help??

in reply to How to structure applications using a RDBMS

One way to reduce the number of SQL functions is to model the database schema in the database.

This approach uses tables to model the database table names, column names, datatypes, relationships, and the ordinality of the relationships.

This approach allows many queries to be automatically generated. Instead of using a lot of little wrapper functions, AUTOLOAD a function that performs a query on the schema, generates SQL code, and runs the query.

I haven't tried DbFramework but it looks like it does at least some of this and possibly much more.

There is an article about this approach, although it describes a Java implementation of the idea.

I used this approach on a database that has about 500 fully normalized tables. I use a GUI that is generated on the fly from the database metadata. There is also a database schema browser that is driven from the metadata. I would use this approach in the design of databases that have more than about 50 or 100 tables.

It should work perfectly the first time! - toma

  • Comment on Re: How to structure applications using a RDBMS

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://183162]
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: (4)
As of 2017-08-22 03:25 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (328 votes). Check out past polls.