peewee Documentation Release 3.0.0IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. safe([_safe=True]) _safe (bool) – Whether to add IF NOT EXISTS clause. Parameters: Parameters: any previously-specified WHERE expressions. using([_using=None]) _using (str) – Specify index algorithm for USING clause. class ModelIndex(model, fields[, unique=False[, safe=True[, where=None[, using=None[ IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. name (str) – Optional index name. Fields class Field([null=False[, index=False[, unique=False[0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. safe([_safe=True]) _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) any previously-specified WHERE expressions. using([_using=None]) _using (str) – Specify index algorithm for USING clause. Parameters: class ModelIndex(model, fields[, unique=False[, safe=True[, where=None[ IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation
Release 3.5.0EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. safe([_safe=True]) Parameters _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) previously-specified WHERE expressions. using([_using=None]) Parameters _using (str) – Specify index algorithm for USING clause. 124 Chapter 1. Contents: peewee Documentation, Release 3.5.0 class ModelIndex(model EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. • name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.4.0IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. safe([_safe=True]) _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) any previously-specified WHERE expressions. using([_using=None]) _using (str) – Specify index algorithm for USING clause. Parameters: class ModelIndex(model, fields[, unique=False[, safe=True[, where=None[ IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. safe([_safe=True]) _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) any previously-specified WHERE expressions. using([_using=None]) _using (str) – Specify index algorithm for USING clause. class ModelIndex(model, fields[, unique=False[, safe=True[, where=None[, using=None[ IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.3.0EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. safe([_safe=True]) Parameters _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) previously-specified WHERE expressions. using([_using=None]) Parameters _using (str) – Specify index algorithm for USING clause. class ModelIndex(model, fields[, unique=False[, safe=True[, where=None[, using=None[ EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. • name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. safe([_safe=True]) Parameters _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) previously-specified WHERE expressions. using([_using=None]) Parameters _using (str) – Specify index algorithm for USING clause. 1.14. API Documentation 149 peewee Documentation, Release 3.4.0 class ModelIndex(model EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. • name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. safe([_safe=True]) _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) any previously-specified WHERE expressions. using([_using=None]) _using (str) – Specify index algorithm for USING clause. class ModelIndex(model, fields[, unique=False[, safe=True[, where=None[, using=None[ IF NOT EXISTS clause. where (Expression) – Optional WHERE clause for index. using (str) – Index algorithm. name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. safe([_safe=True]) Parameters _safe (bool) – Whether to add IF NOT EXISTS clause. where(*expressions) previously-specified WHERE expressions. using([_using=None]) Parameters _using (str) – Specify index algorithm for USING clause. class ModelIndex(model, fields[, unique=False[, safe=True[, where=None[, using=None[ EXISTS clause. • where (Expression) – Optional WHERE clause for index. • using (str) – Index algorithm. • name (str) – Optional index name. Expressive method for declaring an index on a model. Examples:0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 2.10.2content = SearchField() class Meta: database = db # Use the porter stemming algorithm to tokenize content. extension_options = {'tokenize': 'porter'} To store a document in the 'some phrase', weights=[2.0, 1.0], ) Examples using the BM25 ranking algorithm: # you can also use the BM25 algorithm to rank documents: best = (DocumentIndex .select() .where(DocumentIndex searching for a term and sorting results by the quality of the match, as determined by the BM25 algorithm. This is equivalent to the bm25() example code presented below. term (str) – Search term to use0 码力 | 275 页 | 276.96 KB | 1 年前3
共 11 条
- 1
- 2













