Hi,
>
> Yes :). The problem is that you are both using Elixir's builtin
> session (because you are not passing any session option one way or
> another to the Entity), AND defining a new session, so what happens is
> that "session.commit()" commits your own session, which is empty.
> There are two ways to fix this:
> 1) use elixir default session all the way
> 2) use your own session but tell Elixir about it (either with
> using_options, or __session__ at the module level). In that case,
> don't forget to add: "session.add(a)" before "session.commit()" (since
> you didn't define a ScopedSession).
>
> Hope it helps,
>
What I want ( or to believe to want ) is to access the connection object
in order to say:
connection.execute ( <SQL> )
In SqlAlchemy , the process would be ( if I correctly understood ):
engine = create_engine('....')
connection = engine.connect()
Can I get the connection object from the Elixir layer or do I have to
fall back to SqlAlchemy for this purpose ?
Peter
--
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.