wwwjfy on pyup-update-pytest-4.1.0-to-4.2.0
wwwjfy on master
Update pytest from 4.1.0 to 4.2… (compare)
fantix on pyup-update-pytest-4.1.0-to-4.2.0
Update pytest from 4.1.0 to 4.2… (compare)
fantix on pyup-update-pytest-4.1.0-to-4.2.0
wwwjfy on pyup-update-quart-0.6.10-to-0.7.0
wwwjfy on pyup-update-flake8-3.5.0-to-3.7.1
wwwjfy on master
Update flake8 from 3.5.0 to 3.7… use latest flake8 in tests, ref… Merge pull request #430 from fa… (compare)
wwwjfy on pyup-update-flake8-3.5.0-to-3.7.1
use latest flake8 in tests, ref… (compare)
create_user()
instead of User.create()
User.create
method
create()
and create_all()
functions are a bit less elegant - they're copied from SQLAlchemy and manipulated to be async, so I'm overall not a big fan
create_async
or GinoSchemaVisitor.create
might be the places to override
Hi. May be anybody knows why sqlalchemy query execute faster then Gino query. I have this type pf code with Gino
async with db.with_bind(connecting_str) as engine:
instructions = await Instruction.query.where(Instruction.id==int(instruction_id)
).where(Instruction.trigger_id==int(instruction['trigger_id'])).gino.first()
await instructions.update(blocks=instruction['blocks']).apply()
. And my SQLAlchemy code:
with AlchemySession() as db:
db.session.query(Trigger).filter(Trigger.id == trigger_id).update({'instructions_id': request['instructions_id']})
db.session.commit()
How can we use update query in sqlalchemy
db.session.query(Trigger).filter(Trigger.id == trigger_id).update({'instructions_id': request['instructions_id']})
style for one-to-many relations?
Shall we do it without getting foreign key and then find child table with this key and after that update this row?
filter_by
from sqlalchemy where you could just filter arguments without having to pass table columns? Keep up the good work, thanks in advance!