peewee Documentation
Release 2.10.2suffix. .between(low, high) Search for values between low and high. .regexp(exp) Regular expression match. .bin_and(value) Binary AND. .bin_or(value) Binary OR. .in_(value) IN lookup (identical to <<) where(DocumentIndex.match(phrase)) .order_by(DocumentIndex.bm25())) Warning: All SQL queries on FTSModel classes will be slow except full-text searches and docid lookups. Continued examples: # Use the "match" operation .select() .where(DocumentIndex.match('some query'))) # To sort by best match, use the custom "rank" function. best = (DocumentIndex .select() .where(DocumentIndex.match('some query')) .order_by(DocumentIndex0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 2.10.2suffix. .between(low, high) Search for values between low and high. .regexp(exp) Regular expression match. .bin_and(value) Binary AND. .bin_or(value) Binary OR. .in_(value) IN lookup (identical to <<) DocumentIndex, on=(Document.id == DocumentIndex.docid)) .where(DocumentIndex.match(phrase)) .order_by(DocumentIndex.bm25())) Warning All SQL queries on FTSModel classes # Use the "match" operation for FTS queries. matching_docs = (DocumentIndex .select() .where(DocumentIndex.match('some query'))) # To sort by best match, use the custom0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 3.5.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero Search for values between low and high. .regexp(exp) Regular expression match (case-sensitive). .iregexp(exp) Regular expression match (case-insensitive). .bin_and(value) Binary AND. .bin_or(value) Binary native datetime data-type). The default supported formats are: Note If the incoming value does not match a format, it is returned as-is. '%Y-%m-%d %H:%M:%S.%f' # year-month-day hour-minute- second.microsecond0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero Search for values between low and high. .regexp(exp) Regular expression match (case-sensitive). .iregexp(exp) Regular expression match (case-insensitive). .bin_and(value) Binary AND. .bin_or(value) Binary native datetime data-type). The default supported formats are: Note If the incoming value does not match a format, it is returned as-is. '%Y-%m-%d %H:%M:%S.%f' # year-month-day hour-minute- second.microsecond0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero Search for values between low and high. .regexp(exp) Regular expression match (case-sensitive). .iregexp(exp) Regular expression match (case-insensitive). .bin_and(value) Binary AND. .bin_or(value) Binary native datetime data-type). The default supported formats are: Note: If the incoming value does not match a format, it is returned as-is. '%Y-%m-%d %H:%M:%S.%f' # year-month-day hour-minute-second.microsecond0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero Search for values between low and high. .regexp(exp) Regular expression match (case-sensitive). .iregexp(exp) Regular expression match (case-insensitive). .bin_and(value) Binary AND. .bin_or(value) Binary 154 Chapter 1. Contents: peewee Documentation, Release 3.4.0 Note: If the incoming value does not match a format, it is returned as-is. '%Y-%m-%d %H:%M:%S.%f' # year-month-day hour-minute-second.microsecond0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation
Release 3.3.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero suffix. .between(low, high) Search for values between low and high. .regexp(exp) Regular expression match. .bin_and(value) Binary AND. .bin_or(value) Binary OR. .in_(value) IN lookup (identical to <<) native datetime data-type). The default supported formats are: Note: If the incoming value does not match a format, it is returned as-is. '%Y-%m-%d %H:%M:%S.%f' # year-month-day hour-minute-second.microsecond0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.6.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero Search for values between low and high. .regexp(exp) Regular expression match (case-sensitive). .iregexp(exp) Regular expression match (case-insensitive). Method Meaning .bin_and(value) Binary AND. .bin_or(value) group_by(Latest.user) .alias('latest_query')) # Our join predicate will ensure that we match tweets based on their # timestamp *and* user_id. predicate = ((Tweet.user == latest_query.c.user_id)0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero Search for values between low and high. .regexp(exp) Regular expression match (case-sensitive). .iregexp(exp) Regular expression match (case-insensitive). .bin_and(value) Binary AND. .bin_or(value) Binary alias('max_ts')) .group_by(Latest.user) .alias('latest_query')) # Our join predicate will ensure that we match tweets based on their # timestamp *and* user_id. predicate = ((Tweet.user == latest_query.c.user_id)0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.0.0one owner, so when we performed the join from Pet to Person, there was always going to be a single match. The situation is different when we are joining from Person to Pet because a person may have zero between(low, high) Search for values between low and high. Method Meaning .regexp(exp) Regular expression match. .bin_and(value) Binary AND. .bin_or(value) Binary OR. .in_(value) IN lookup (identical to <<) native datetime data-type). The default supported formats are: Note If the incoming value does not match a format, it is returned as-is. '%Y-%m-%d %H:%M:%S.%f' # year-month-day hour-minute- second.microsecond0 码力 | 319 页 | 361.50 KB | 1 年前3
共 16 条
- 1
- 2













