| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)
Marshall wrote:
> Laurent Bossavit wrote:
>> Marshall, >> >>> If your data is only available >>> behind a programmatic interface, then any analysis you want >>> to do means you have to write and compile code. You can >>> do an amazing amount of analysis on a database by simply >>> typing in interactive one-off SQL queries. >> SQL queries are what, if not code ? You have to write them - some part >> of the system has to compile them - some other part executes them. >> >> What makes a SQL query different from code ?
Whilst I understand and agree with your point that ad-hoc queries against Relational DBs are best done via SQL, I thought you might be interested to know that we can get 'nearly' (not fully, granted) ad-hoc query ability using Objects with Ruby's ActiveRecord classes via ruby's interactive shell.
Granted, you need to have already written your Ruby activeRecord classes that connect to your DB table(s), but once written they can be used many times. And as Ruby allows runtime changes to classes, we can add further capabilities which would strengthen the ad-hoc query nature.
Dont get me wrong - its a LOOONGGG way from SQL, I just find it interesting. Received on Sat Jun 03 2006 - 17:21:18 CDT
![]() |
![]() |