Re: [sqlalchemy] (Micro-)feature request: sessionmaker.configure(class_=foo)

2016-07-11 Thread Mike Bayer

sure I can accept a PR for that...



On 07/10/2016 03:47 PM, Martijn van Oosterhout wrote:

Hoi,

See $SUBJECT.

This is a bit of a corner case, but sometimes I want to change the
class_ generated by a sessionmaker(). There is a
sessionmaker.configure() but it can configure everything except the
class. You can easily recreate it but if it is usually wrapped in a
scoped_session and global, that leads to issues...

It's not a really important feature, but it would allow us to clean up
some warts here are there.

Have a nice day,
--
Martijn van Oosterhout

--
You received this message because you are subscribed to the Google
Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sqlalchemy+unsubscr...@googlegroups.com
.
To post to this group, send email to sqlalchemy@googlegroups.com
.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


[sqlalchemy] (Micro-)feature request: sessionmaker.configure(class_=foo)

2016-07-10 Thread Martijn van Oosterhout
Hoi,

See $SUBJECT.

This is a bit of a corner case, but sometimes I want to change the class_ 
generated by a sessionmaker(). There is a sessionmaker.configure() but it 
can configure everything except the class. You can easily recreate it but 
if it is usually wrapped in a scoped_session and global, that leads to 
issues...

It's not a really important feature, but it would allow us to clean up some 
warts here are there.

Have a nice day,
--
Martijn van Oosterhout

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.