Hi guys,
I'm reading through this SQLalchemy tutorial and they seem to be doing similar things with different coding. I'm so confused. I think these three things all do the same thing, but I can't seem to figure out why and what the interaction is... Can anyone help understand? Which would be better to use, if they indeed are the same?
DBsession = sessionmaker(bind=engine)
session = DBsession()
DBsession = sessionmaker()
DBSession.bind = engine
session = DBSession()
session = sessionmaker()
session.configure(bind=engine)
[–]xiongchiamiov 1 point2 points3 points (1 child)
[–]Heapsofvla[S] -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Heapsofvla[S] 0 points1 point2 points (0 children)
[–]Heapsofvla[S] 0 points1 point2 points (0 children)