peewee Documentation Release 2.10.2
types, NULL for arrays and objects. id: a unique ID referencing the current node in the tree. parent: the ID of the containing node. fullkey: the full path describing the current element. path: the path to provided and recursively returns all descendants of the given root node. If a path is specified, then that path is treated as the root node element. The rows returned by calls to tree() have the same attributes model_class – The model class containing the nodes in the tree. foreign_key – The self-referential parent-node field on the model class. If not provided, peewee will introspect the model to find a suitable key0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
NULL for arrays and objects. • id: a unique ID referencing the current node in the tree. • parent: the ID of the containing node. 92 Chapter 1. Contents: peewee Documentation, Release 2.10.2 • fullkey: vided and recursively returns all descendants of the given root node. If a path is specified, then that path is treated as the root node element. The rows returned by calls to tree() have the same attributes model_class – The model class containing the nodes in the tree. • foreign_key – The self-referential parent-node field on the model class. If not provided, peewee will introspect the model to find a suitable key0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 3.0.0
for working with tree and graph-structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward implementation. Query-builder class Node Base-class for all components which make up the AST for a SQL query. static copy(method) Decorator to use with Node methods that mutate the node’s state. This allows method-chaining (str) – Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) node (Node) – a column-like object. alias (str) – alias to assign to column. Create a named alias0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.5.0
implementation. Query-builder class Node Base-class for all components which make up the AST for a SQL query. static copy(method) Decorator to use with Node methods that mutate the node’s state. This allows method-chaining (str) – Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) node (Node) – a column-like object. alias (str) – alias to assign to column. Create a named alias object. If the new alias is None, then the original column-like object is returned. class Negated(node) Represents a negated column-like object. class Value(value[, converterNone[, unpack=True]]) value0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
for working with tree and graph-structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward implementation. Query-builder class Node Base-class for all components which make up the AST for a SQL query. static copy(method) Decorator to use with Node methods that mutate the node’s state. This allows method-chaining (str) – Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) node (Node) – a column-like object. alias (str) – alias to assign to column. Create a named alias0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
for working with tree and graph-structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward class Node Base-class for all components which make up the AST for a SQL query. Parameters: Parameters: Returns: static copy(method) Decorator to use with Node methods that mutate the node’s state (str) – Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) node (Node) – a column-like object. alias (str) – alias to assign to column. Create a named alias0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.5.0
9.2 Query-builder class Node Base-class for all components which make up the AST for a SQL query. static copy(method) Decorator to use with Node methods that mutate the node’s state. This allows method-chaining Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) Parameters • node (Node) – a column-like object. • alias (str) – alias to assign to column. Create a named object. If the new alias is None, then the original column- like object is returned. class Negated(node) Represents a negated column-like object. class Value(value[, converterNone[, unpack=True]]) Parameters0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.3.0
working with tree and graph- structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward 14.2 Query-builder class Node Base-class for all components which make up the AST for a SQL query. static copy(method) Decorator to use with Node methods that mutate the node’s state. This allows method-chaining Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) Parameters • node (Node) – a column-like object. • alias (str) – alias to assign to column. Create a named0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
working with tree and graph- structured data - imagine retrieving all of the relations of a graph node to a given depth, for example. Find the upward recommendation chain for member ID 27 Find the upward 14.2 Query-builder class Node Base-class for all components which make up the AST for a SQL query. static copy(method) Decorator to use with Node methods that mutate the node’s state. This allows method-chaining Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) Parameters • node (Node) – a column-like object. • alias (str) – alias to assign to column. Create a named0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.6.0
implementation. Query-builder class Node Base-class for all components which make up the AST for a SQL query. static copy(method) Decorator to use with Node methods that mutate the node’s state. This allows method-chaining recursively unwrapping “wrapped” nodes. Base case is to return self. is_alias() API for determining if a node, at any point, has been explicitly aliased by the user. class Source([alias=None]) A source of row (str) – Column name. Column on a table or a column returned by a sub-query. class Alias(node, alias) node (Node) – a column-like object. alias (str) – alias to assign to column. Create a named alias0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2