Module TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr ImportFrom alias ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A N/A psycopg2cffi compat N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A compat register psycopg2.extras RealDictCursor libtree core Transaction N/A N/A N/A 
    Representation of a database transaction and entrypoint for global
    tree operations.

    :param connection: Postgres connection object. Its ``autocommit``
                       attribute will be set to ``False``.
    :type connection: Connection
    :param object node_factory: Factory class for creating node objects
     __init__ N/A N/A self connection node_factory N/A N/A N/A N/A connection autocommit False N/A N/A self connection connection N/A N/A self cursor N/A N/A connection cursor cursor_factory RealDictCursor N/A N/A self node_factory node_factory N/A commit N/A N/A self N/A N/A N/A 
        Write changes to databases. See `commit()
        <http://initd.org/psycopg/docs/connection.html#connection.commit>`_
        .
         N/A N/A N/A N/A self connection commit N/A rollback N/A N/A self N/A N/A N/A 
        Discard changes. See `rollback()
        <http://initd.org/psycopg/docs/connection.html#connection.rollback>`_
        .
         N/A N/A N/A N/A self connection rollback N/A is_compatible_postgres_version N/A N/A self N/A N/A N/A 
        Determine whether PostgreSQL server version is compatible with
        libtree.
         N/A N/A N/A core is_compatible_postgres_version N/A self cursor N/A install N/A N/A self N/A N/A N/A  Create tables and trigger functions in database.  N/A N/A N/A core create_schema N/A self cursor N/A N/A N/A core create_triggers N/A self cursor N/A True N/A uninstall N/A N/A self N/A N/A N/A  Remove libtree tables from database.  N/A N/A N/A core drop_tables N/A self cursor N/A clear N/A N/A self N/A N/A N/A  Empty database tables.  N/A N/A N/A core flush_tables N/A self cursor N/A print_tree N/A N/A self N/A N/A N/A  Simple function to print tree structure to stdout.  N/A N/A N/A core print_tree N/A self cursor N/A get_tree_size N/A N/A self N/A N/A N/A  Get amount of nodes inside the tree.  N/A N/A N/A core get_tree_size N/A self cursor N/A get_root_node N/A N/A self N/A N/A N/A  Get root node if exists, other ``None``.  N/A node_id N/A N/A N/A core get_root_node N/A self cursor id N/A N/A N/A self node_factory self node_id N/A insert_root_node N/A N/A self properties N/A None N/A N/A 
        Create root node, then get it.

        :param dict properties: Inheritable key/value pairs
                                (see :ref:`core-properties`)
         N/A node_id N/A N/A N/A core insert_node N/A self cursor properties id N/A N/A N/A self node_factory self node_id N/A get_node N/A N/A self node_id N/A N/A N/A 
        Get node with given database ID.

        :param int node_id: Database ID
         N/A node_id N/A N/A N/A core get_node N/A self cursor node_id id N/A N/A N/A self node_factory self node_id N/A get_nodes_by_property_dict N/A N/A self query N/A N/A N/A 
        Get a set of nodes which have all key/value pairs of ``query``
        in their properties. Inherited properties are not considered.

        :param dict query: The dictionary to search for
         N/A ret N/A set N/A _nd N/A N/A core get_nodes_by_property_dict N/A self cursor query N/A N/A node N/A N/A self node_factory self N/A _nd id N/A N/A N/A ret add node N/A ret N/A get_nodes_by_property_key N/A N/A self key N/A N/A N/A 
        Get a set of nodes which have a property named ``key`` in their
        properties. Inherited properties are not considered.

        :param str key: The key to search for
         N/A ret N/A set N/A _nd N/A N/A core get_nodes_by_property_key N/A self cursor key N/A N/A node N/A N/A self node_factory self N/A _nd id N/A N/A N/A ret add node N/A ret N/A get_nodes_by_property_value N/A N/A self key value N/A N/A N/A 
        Get a set of nodes which have a property ``key`` with value
        ``value``. Inherited properties are not considered.

        :param str key: The key to search for
        :param object value: The exact value to sarch for
         N/A ret N/A set N/A _nd N/A N/A core get_nodes_by_property_value N/A self cursor key value N/A N/A node N/A N/A self node_factory self N/A _nd id N/A N/A N/A ret add node N/A ret N/A N/A