peewee Documentation
Release 3.5.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name insert(username='huey', last_login=now, login_count=1) .on_conflict( conflict_target=(User.username,), # Which constraint? preserve=(User.last_login,), # Use the value row tuple. class OnConflict([action=None[, update=None[, preserve=None[, where=None[, conflict_target=None]]]]]) action (str) – Action to take when resolving conflict. update – A dictionary mapping0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name insert(username='huey', last_login=now, login_count=1) .on_conflict( conflict_target=(User.username,), # Which constraint? preserve=(User.last_login,), # Use the value row tuple. class OnConflict([action=None[, update=None[, preserve=None[, where=None[, conflict_target=None]]]]]) action (str) – Action to take when resolving conflict. update – A dictionary mapping0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name now() rowid = (User .insert(username='huey', last_login=now, login_count=1) .on_conflict( conflict_target=(User.username,), # Which constraint? preserve=(User.last_login,), # Use the value we would have row tuple. class OnConflict([action=None[, update=None[, preserve=None[, where=None[, con- flict_target=None]]]]]) Parameters • action (str) – Action to take when resolving conflict. • update – A dictionary0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name now() rowid = (User .insert(username='huey', last_login=now, login_count=1) .on_conflict( conflict_target=(User.username,), # Which constraint? preserve=(User.last_login,), # Use the value we would have row tuple. class OnConflict([action=None[, update=None[, preserve=None[, where=None[, con- flict_target=None]]]]]) Parameters • action (str) – Action to take when resolving conflict. • update – A dictionary0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name insert(username='huey', last_login=now, login_count=1) .on_conflict( conflict_target=[User.username], # Which constraint? preserve=[User.last_login], # Use the value we between MySQL and Postgresql/SQLite is that Postgresql and SQLite require that you specify a conflict_target. For more information, see Insert.on_conflict() and OnConflict. Deleting records To delete a single0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name now() rowid = (User .insert(username='huey', last_login=now, login_count=1) .on_conflict( conflict_target=[User.username], # Which constraint? preserve=[User.last_login], # Use the value we would have inserted between MySQL and Postgresql/SQLite is that Postgresql and SQLite require that you specify a conflict_target. For more information, see Insert.on_conflict() and OnConflict. 1.7.5 Deleting records To delete0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.0.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name row tuple. class OnConflict([action=None[, update=None[, preserve=None[, where=None[, conflict_target=None]]]]]) action (str) – Action to take when resolving conflict. update – A dictionary mapping whose values should be preserved. where – Expression to restrict the conflict resolution. conflict_target – Name of column or constraint to check. Parameters: Parameters: Parameters: Parameters: Parameters:0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 3.1.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name row tuple. class OnConflict([action=None[, update=None[, preserve=None[, where=None[, conflict_target=None]]]]]) Parameters: Parameters: Parameters: Parameters: Parameters: Parameters: action whose values should be preserved. where – Expression to restrict the conflict resolution. conflict_target – Name of column or constraint to check. Represent a conflict resolution clause for a data-modification0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.3.0user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name row tuple. class OnConflict([action=None[, update=None[, preserve=None[, where=None[, con- flict_target=None]]]]]) Parameters • action (str) – Action to take when resolving conflict. • update – A dictionary values should be preserved. • where – Expression to restrict the conflict resolution. • conflict_target – Name of column or constraint to check. Represent a conflict resolution clause for a data-modification0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation Release 2.10.2user_id, tweet.message) ForeignKeyField allows for a backreferencing property to be bound to the target model. Implicitly, this property will be named classname_set, where classname is the lowercase name0 码力 | 275 页 | 276.96 KB | 1 年前3
共 11 条
- 1
- 2













