peewee Documentation Release 3.0.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0create_table() Example queries: # Use dictionary operators to get, set and delete rows from the LSM # table. Slices may be passed to represent a range of key values. def get_timestamp(): # Return time as integer value field, Peewee will return the value directly when getting a single item. You can also request slices of rows, in which case Peewee returns a corresponding Select query, which can be iterated over. Below value='v7'), Row(key='k9', value='v9')] You can delete single rows using del or multiple rows using slices or expressions: >>> del KV['k1'] >>> del KV['k3x':'k8'] >>> del KV[KV.key.between('k10', 'k18')]0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 2.10.2', tags=['foo', 'bar', 'baz']) Additionally, you can use the __getitem__ API to query values or slices in the database: # Get the first tag on a given blog post. first_tag = (BlogPost .select(BlogPost0 码力 | 275 页 | 276.96 KB | 1 年前3
共 11 条
- 1
- 2













