Hello Xavier,

You can't, since there is no underlying pg driver. Datamapper uses the 
DataObjects drivers, which are directly writting on top of the C api of most of 
the database drivers. Is this a setting that is controllable through a query? 
Otherwise you probably need support for this in the DO driver (do_postgres). 

-- 
Regards,

Dirkjan Bussink

On 8 Nov 2010, at 05:34, Xavier (DBIYF) wrote:

> I want to call this function in the underlying pg driver:
> 
> pg-0.9.0/ext/pg.c
> 2359:pgconn_set_notice_receiver(VALUE self)
> 
> How do I get down to it from a top level DM repository object? I tried
> to trace down in through dm-postgres-adapter but got lost :S
> 
> (evil instance_eval { @instance_var } tricks are fine for now)
> 
> My real problem is I'm getting a heap of noise from the database_cleaner gem 
> with PG9:
> NOTICE:  truncate cascades to table "X"
> 
> I want to set my own notice receiver function to filter them out (the default 
> one just prints to stderr)
> 
> Cheers,
> Xavier
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DataMapper" 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/datamapper?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to