🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • class RelTypes

    A constants class that defines string literals representing relationship types used in a graph database (Neo4j) for document management and approval workflows.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py | Lines: 42-68

    constants graph-database neo4j relationships document-management
  • class NodeLabels

    A constants class that defines string labels for different node types in a Neo4j graph database schema for a document management system (CDocs).

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py | Lines: 19-39

    constants neo4j graph-database node-labels document-management
  • function init_database

    Initializes a Neo4j database with required schema constraints, creates an AuditTrail node, and migrates existing audit events.

    File: /tf/active/vicechatdev/CDocs/db/__init__.py | Lines: 62-89

    database initialization schema migration neo4j
  • function close_driver

    Safely closes a global database driver connection and sets it to None, with error handling and logging.

    File: /tf/active/vicechatdev/CDocs/db/__init__.py | Lines: 49-60

    database neo4j connection-management cleanup resource-management
  • function get_driver

    Singleton function that initializes and returns a Neo4j database driver instance with connection verification.

    File: /tf/active/vicechatdev/CDocs/db/__init__.py | Lines: 18-47

    database neo4j driver singleton connection-management
  • function migrate_audit_trail

    Migrates existing audit events from a legacy format to a new AuditTrail structure in a Neo4j database, returning migration statistics.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 1072-1096

    database-migration audit-trail neo4j schema-migration data-transformation
  • function test_connection

    Tests the database connection by executing a simple query and validating the result.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 964-979

    database connection-test health-check neo4j validation
  • function node_exists

    Checks if a node with a specific UID exists in a Neo4j graph database by querying for the node and returning a boolean result.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 932-962

    neo4j graph-database node-validation existence-check database-query
  • function create_node_with_uid

    Creates a new node in a Neo4j graph database with a specified UID, label, and properties, automatically adding a creation timestamp if not provided.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 883-930

    neo4j graph-database node-creation database uid
  • function check_node_exists

    Checks if a node with a specified label and matching properties exists in a Neo4j graph database.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 836-881

    neo4j graph-database node-validation database-query existence-check
  • function get_document_with_relationships

    Retrieves a complete document from Neo4j graph database along with all its related entities including versions, reviews, approvals, and authors.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 761-834

    neo4j graph-database document-management relationships cypher-query
  • function batch_create_nodes

    Creates multiple Neo4j graph database nodes in batches for improved performance, automatically generating UIDs and timestamps for each node.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 712-759

    neo4j graph-database batch-processing bulk-insert database
  • function execute_transaction

    Executes a database transaction function within a Neo4j session, handling connection management and error logging automatically.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 691-710

    database neo4j transaction wrapper error-handling
  • function get_related_nodes

    Retrieves nodes from a Neo4j graph database that are related to a source node identified by its UID, with optional filtering by relationship type, target node label, and relationship direction.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 637-689

    neo4j graph-database relationships traversal query
  • function run_query

    Executes a custom Cypher query against a Neo4j database and returns the results as a list of dictionaries, handling conversion of Neo4j-specific types.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 598-635

    neo4j cypher database graph-database query-execution
  • function run_query_v1

    Executes a Cypher query against a Neo4j database session and returns the result, with optional parameterization for safe query execution.

    File: /tf/active/vicechatdev/offline_docstore_multi_vice.py | Lines: 54-72

    neo4j graph-database cypher query-execution database
  • function get_nodes_by_label

    Retrieves nodes from a Neo4j graph database by label with optional property filtering, pagination, and sorting capabilities.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 538-596

    neo4j graph-database query node-retrieval filtering
  • function get_node_by_uid

    Retrieves a node from a Neo4j graph database by its unique identifier (UID) and returns it as a dictionary.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 502-536

    neo4j graph-database node-retrieval database-query uid-lookup
  • function delete_node

    Deletes a node from a Neo4j graph database by its unique identifier (UID), with optional cascade deletion of connected nodes and relationships.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 454-500

    neo4j graph-database delete node-deletion cascade-delete
  • function update_node

    Updates properties of a Neo4j graph database node identified by its unique UID, automatically adding a modification timestamp.

    File: /tf/active/vicechatdev/CDocs/db/db_operations.py | Lines: 414-452

    neo4j graph-database update node-update database-operation