This simple code snippet worked before, but as soon as I upgraded to 0.6.1 it
won't save anything in the database. No errors, just nothing shows up in
PostgreSQL.
import auction.new_dealers.model as nd
dlr = nd.Dealer(name="Foo")
dlr.save()
dlr.flush()
I tried upgrading SA to 0.4.7p1 and then 0.5rc1 with no joy.
Here's the "session" related stuff:
from elixir import setup_all, cleanup_all, create_all, drop_all
from elixir import metadata, session
import new_dealers.model
# Postgres
database = 'postgres://auction:[EMAIL PROTECTED]:5432/auction'
metadata.bind = database
metadata.bind.echo = False
session.bind = metadata.bind
setup_all()
Any thoughts?
Thanks,
Michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---