[Nitro] OG clarification: Adapter method source locations

Mark Van De Vyver mvyver at gmail.com
Wed Sep 12 03:19:51 EDT 2007


Hmm,
I think I've now got the hang of this:

[./og/lib/og/adapter<Vendor.rb>]:
----------------------------------------------
<Vendor>Adpater methods that override methods in
[./og/lib/og/store.rb] or [./og/lib/og/store/sql.rb] or
[./og/lib/og/store/sql/*.rb] should be placed here.

[./og/lib/og/adapter/<Vendor>/override.rb]:
-----------------------------------------------------------
<Vendor>Adpater methods that override the <Vendor> driver methods
(e.g. those in ruby-mysql, or postgr, or ruby-odbc, etc.) go here.

[./og/lib/og/adapter/<Vendor>/utils.rb]:
-----------------------------------------------------
Everything else.


Better?

mv



On 9/12/07, Mark Van De Vyver <mvyver at gmail.com> wrote:
> Hi Devs,
>
> Can anyone elaborate on the following (pedantic/trivial?):
>
> <Vendor>Adpater methods that override methods in
> [./og/lib/og/store.rb] or [./og/lib/og/store/sql.rb] or
> [./og/lib/og/store/sql/*.rb] should be placed in:
> [./og/lib/og/adapter/<Vendor>/override.rb]
>
> <Vendor>Adpater methods that provide adapter specific utility methods
> (i.e. do not appear in any of the above) should go in:
> [./og/lib/og/adapter/<Vendor>/utils.rb]
>
> Consequently the bulk of the implementation will appear in the override.rb file?
>
> The file [./og/lib/og/adapter/<Vendor>.rb] will in-fact contain very
> little, possibly as little as some requires and initialize....
>
> mv
>


More information about the Nitro-general mailing list