New topic: 

PostgreSQL: Tables & Views

<http://forums.realsoftware.com/viewtopic.php?t=43949>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Jason_Adams          Post subject: PostgreSQL: Tables & 
ViewsPosted: Thu May 10, 2012 10:38 am                                 
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1559
Location: Michigan, USA                I'm working on a project which requires 
strong interaction with a Pg database. It's a bit more involved than I'm used 
to, as far as databases are concerned. I've written classes which wrap the SQL 
side of things and gives me objects containing row values in turn, so I can 
keep in my happy little OOP world. Initially I just had a table base class, and 
a subclass for each respective table — handling queries, insertion, editing, 
etc. But I've run into the issue that I ought to incorporate Views to provide 
me with generational integrity (i.e. database structure changes over time) and 
handling multi-table querying for me.

What I'm thinking of doing is separating my Table classes to purely handle 
insertion, and allow my Views to handle queries — either can edit. Outside of 
being fancy, I understand most Pg programmers use Views purely for querying, 
using the base tables for insertion.

My open question is if someone has dealt with Views/Tables in the past and can 
offer insight on how they accomplished the task.

Thanks!     
_________________
Windows 7 Ultimate x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2011r4

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult 
and not tried." - G.K. Chesterton  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to