Re: Databases as objects
Date: 21 Dec 2006 19:13:11 -0800
Message-ID: <1166757191.832581.62130_at_a3g2000cwd.googlegroups.com>
> What I'm trying to suggest... that the database is an object, which should hide its data and only be used through its interface, just like they do with other objects in their models.
print (john.age, john.ss#);
Another way is for a C++ application to connect to an RMDB and create a
relation named T_Person with attributes name, age and ss#. Similar code
might look like this:
rs = ado.execute("SELECT * FROM T_Person WHERE name='john'");
Print (rs.field("age"), rs.field("ss#"));
Each of the above methods have advantages and disadvantages that make
it more appropriate for a particular requirement. When you have two
systems/methodologies at work, there is likey to be some type of
impedance mismatch in feature, flexibility, performance, etc.
Received on Fri Dec 22 2006 - 04:13:11 CET