peewee Documentation Release 0.9.7User.delete().where(active=False) # <-- returns a DeleteQuery >>> dqfc866ada4d0> >>> dq.execute() # <-- executes the query and returns number of rows deleted 3 >>> uq = update(active=True).where(id__gt=3) # <-- returns an UpdateQuery >>> uq fc865beff50> >>> uq.execute() # <-- executes the query and returns number of rows updated 2 >>> iq = User.insert(username='new user') # <-- returns an InsertQuery >>> iq fc865beff10> >>> iq.execute() # <-- executes query and returns the new row's PK 3 >>> sq = User.select() 0 码力 | 78 页 | 143.68 KB | 1 年前3
peewee Documentation
Release 0.9.7User.delete().where(active=False) # <-- returns a DeleteQuery >>> dqfc866ada4d0> >>> dq.execute() # <-- executes the query and returns number of rows deleted 3 >>> uq = update(active=True).where(id__gt=3) # <-- returns an UpdateQuery >>> uq fc865beff50> >>> uq.execute() # <-- executes the query and returns number of rows updated 2 >>> iq = User.insert(username=’new user’) # <-- returns an InsertQuery >>> iq fc865beff10> >>> iq.execute() # <-- executes query and returns the new row’s PK 3 >>> sq = User.select() 0 码力 | 53 页 | 347.03 KB | 1 年前3
peewee Documentation
Release 2.0.2delete().where(User.active == False) # <-- returns a DeleteQuery >>> dqfc866ada4d0> >>> dq.execute() # <-- executes the query and returns number of rows deleted 3 >>> uq = update(active=True).where(User.id > 3) # <-- returns an UpdateQuery >>> uq fc865beff50> >>> uq.execute() # <-- executes the query and returns number of rows updated 2 >>> iq = User.insert(username=’new user’) # <-- returns an InsertQuery >>> iq fc865beff10> >>> iq.execute() # <-- executes query and returns the new row’s PK 8 >>> sq = User.select() 0 码力 | 65 页 | 315.33 KB | 1 年前3
peewee Documentation Release 1.0.0User.delete().where(active=False) # <-- returns a DeleteQuery >>> dqfc866ada4d0> >>> dq.execute() # <-- executes the query and returns number of rows deleted 3 >>> uq = update(active=True).where(id__gt=3) # <-- returns an UpdateQuery >>> uq fc865beff50> >>> uq.execute() # <-- executes the query and returns number of rows updated 2 >>> iq = User.insert(username='new user') # <-- returns an InsertQuery >>> iq fc865beff10> >>> iq.execute() # <-- executes query and returns the new row's PK 3 >>> sq = User.select() 0 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation
Release 1.0.0User.delete().where(active=False) # <-- returns a DeleteQuery >>> dqfc866ada4d0> >>> dq.execute() # <-- executes the query and returns number of rows deleted 3 >>> uq = update(active=True).where(id__gt=3) # <-- returns an UpdateQuery >>> uq fc865beff50> >>> uq.execute() # <-- executes the query and returns number of rows updated 2 >>> iq = User.insert(username=’new user’) # <-- returns an InsertQuery >>> iq fc865beff10> >>> iq.execute() # <-- executes query and returns the new row’s PK 3 >>> sq = User.select() 0 码力 | 71 页 | 405.29 KB | 1 年前3
共 5 条
- 1













