[Ogden] og prefix

1 view
Skip to first unread message

Trans

unread,
Feb 14, 2009, 9:57:23 PM2/14/09
to ogden-de...@rubyforge.org
How do people fee about the 'og' prefix to the table names? Should it
not be there? Should it be optional? Should it be the default an you
can turn it off?

Thanks,
T.
_______________________________________________
Ogden-developers mailing list
Ogden-de...@rubyforge.org
http://rubyforge.org/mailman/listinfo/ogden-developers

Reid Thompson

unread,
Feb 15, 2009, 2:24:28 AM2/15/09
to ogden-de...@rubyforge.org
Trans wrote:
> How do people fee about the 'og' prefix to the table names? Should it
> not be there? Should it be optional? Should it be the default an you
> can turn it off?
>
> Thanks,
> T.


+1 default and you can turn it off

* William

unread,
Feb 15, 2009, 5:41:37 AM2/15/09
to ogden-de...@rubyforge.org
Hi all

I feel that the 'og' is a bit of labelling without purpose.  Wouldn't the 'ideal thing' be to not know what a object is unless you need to or you are debugging?

If it was my selection, I'd make it a suffix (because it is incidental information, as far as I can tell) and the default might be off.  Although as a suffix, I think it is ok if it is ON by default. 

I can it be a SQL like name, either way:  'OG_tablename' (prefix) or 'tablename_OG' (suffix)

:-)




On 15/02/2009, Reid Thompson <reid.t...@ateb.com> wrote:
Trans wrote:
How do people fee about the 'og' prefix to the table names? Should it
not be there? Should it be optional? Should it be the default an you
can turn it off?

aloha,
         \_w_/
________________________________
º http://mbimarketing.wordpress.com
º http://adroit-process.blogspot.com

Michael Fellinger

unread,
Feb 15, 2009, 6:07:20 AM2/15/09
to william....@gmail.com, ogden-de...@rubyforge.org
On Sun, Feb 15, 2009 at 7:41 PM, * William <william....@gmail.com> wrote:
> Hi all
>
> I feel that the 'og' is a bit of labelling without purpose. Wouldn't the
> 'ideal thing' be to not know what a object is unless you need to or you are
> debugging?
>
> If it was my selection, I'd make it a suffix (because it is incidental
> information, as far as I can tell) and the default might be off. Although
> as a suffix, I think it is ok if it is ON by default.
>
> I can it be a SQL like name, either way: 'OG_tablename' (prefix) or
> 'tablename_OG' (suffix)
>
> :-)

I think the reason behind that was that some dbs have reserved table
names for their own use, prefixing with og would allow you to use any
name.
The prefix is optional anyway, as far as i can remember.
Just checked the source and it tells me that one can do:
Og.table_prefix = nil
to turn it off, or assign a string to set your own prefix.

^ manveru

>
>
>
> On 15/02/2009, Reid Thompson <reid.t...@ateb.com> wrote:
>>
>> Trans wrote:
>>>
>>> How do people fee about the 'og' prefix to the table names? Should it
>>> not be there? Should it be optional? Should it be the default an you
>>> can turn it off?
>
> aloha,
> \_w_/
> ________________________________
> º http://mbimarketing.wordpress.com
> º http://adroit-process.blogspot.com
>

Reply all
Reply to author
Forward
0 new messages