On Sat, Jun 28, 2008 at 9:01 AM, alex bodnaru <[EMAIL PROTECTED]> wrote:

>
> i wish to save in the database a few predefined records each time after 
> create_all.
>
> it's about permissions and lookup tables information stuff.
>
> could that be achieved as an extension also?

Not at the moment. Elixir doesn't add/use any special hook on the
metadata object. Elixir's job ends when the Table and mapper objects
are created. What happens afterwards is currently out of the scope of
Elixir.

The idea is interesting though, and I see two ways to go there:
- implement a hook at SA level (I don't think it already exist).
- wrap SA's metadata object in your own object and provide the hook
there... This is probably the easiest solution but force you to always
use your special kind of metadata and not the standard kind.
-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to