Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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]
NodeReaper gets the Vote Fairy drunk

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2018-02-22 03:42 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (288 votes). Check out past polls.