Sorry if this is documented (I have looked). I'm using global_connect,
but I can't figure out how to save new objects.

The documentation says:

--------------------------------------------------------------------
mapper(User, users_table)

# create a new User
myuser = User()
myuser.user_name = 'jane'
myuser.password = 'hello123'

[...]

# create a Session and save them

sess = create_session()
sess.save(myuser)
--------------------------------------------------------------------

I can't figure out how to obtain the session when using global_connect
(or maybe there is another way of saving objects under those
circumstances?).

Thanks


_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to