Returns a Graph object with the given URI and created graphs.
Parameters: |
|
---|
Initializes a new Graph object.
Parameters: |
|
---|
Represents a single, atomic transaction. All calls are delayed jobs- they do not execute until the transaction is committed.
Parameters: |
|
---|
Raises an AbortSignal. If you used the Graph.transaction context manager this exception is automatically caught and ignored.
Commits the stored changes to the database. Note that you do not have to call this function if you used the Graph.transaction context manager, or the transaction will be committed twice.
Returns true if there are any internal operations waiting to be performed when the commit method is called.
Deletes an edge from the database. Either the source node or destination node may be specified, but the relation has to be specified.
Parameters: | edge – The edge. |
---|
Create a new query object that acts on a particular SQLite connection instance.
Parameters: | db – The SQLite connection. |
---|
Counts the objects returned by the query. You will not be able to iterate through this query again (with deterministic results, anyway).
Returns a new query object set up correctly with the current query object’s statements and parameters appended to the start of the new one.
Parameters: |
|
---|
Compute the difference between the current selected nodes and the another query, and explicitly not a symmetric difference. Similar to the :meth:Query.intersection
Intersect the current query with another one. The method doesn’t process the objects in a loop/set but uses an SQL query.
Traverse the graph, and selecting the destination nodes for a particular relation that the selected nodes are a source of, i.e. select the friends of my friends.
Parameters: | edge – The edge object. If the edge’s destination node is specified then the source nodes will be selected. |
---|