orator
orator copied to clipboard
TypeError: increment() got an unexpected keyword argument 'name'
in document https://orator-orm.com/docs/0.9/query_builder.html#incrementing-or-decrementing-the-value-of-a-column
db.table('student').increment('votes', 1, name='John')
# TypeError: increment() got an unexpected keyword argument 'name'
but , i looked code ,maybe this:
db.table('student').increment('age', 1, {'name': 'John'})
"UPDATE `student` SET `age` = `age` + 1, `name` = 'John'"