Fixed small mistake in sqlalchemy pattern

This commit is contained in:
pinchsp 2012-09-04 00:51:45 -03:00
parent 80b2689335
commit 69e419e020

View file

@ -189,7 +189,7 @@ To insert data you can use the `insert` method. We have to get a
connection first so that we can use a transaction: connection first so that we can use a transaction:
>>> con = engine.connect() >>> con = engine.connect()
>>> con.execute(users.insert(name='admin', email='admin@localhost')) >>> con.execute(users.insert(), name='admin', email='admin@localhost')
SQLAlchemy will automatically commit for us. SQLAlchemy will automatically commit for us.