topoteretes--cognee
c889a57b6b
Test Suites / Build CI Environment (push) Has been cancelled
Test Suites / Basic Tests (push) Has been cancelled
Test Suites / End-to-End Tests (push) Has been cancelled
Test Suites / CLI Tests (push) Has been cancelled
Test Suites / Slow End-to-End Tests (push) Has been cancelled
Test Suites / Graph Database Tests (push) Has been cancelled
Test Suites / Vector DB Tests (push) Has been cancelled
Test Suites / Temporal Graph Test (push) Has been cancelled
Test Suites / Search Test on Different DBs (push) Has been cancelled
Test Suites / Example Tests (push) Has been cancelled
Test Suites / Notebook Tests (push) Has been cancelled
Test Suites / OS and Python Tests Ubuntu (push) Has been cancelled
Test Suites / OS and Python Tests Extended (push) Has been cancelled
Test Suites / LLM Test Suite (push) Has been cancelled
Test Suites / S3 File Storage Test (push) Has been cancelled
Test Suites / Run Integration Tests (push) Has been cancelled
Test Suites / MCP Tests (push) Has been cancelled
Test Suites / Docker Compose Test (push) Has been cancelled
Test Suites / Docker CI test (push) Has been cancelled
Test Suites / Relational DB Migration Tests (push) Has been cancelled
Test Suites / Distributed Cognee Test (push) Has been cancelled
Test Suites / DB Examples Tests (push) Has been cancelled
Test Suites / Test Completion Status (push) Has been cancelled
Test Suites / Claude Code Review (push) Has been cancelled
Test Suites / basic checks (push) Has been cancelled
build | Build and Push Cognee MCP Docker Image to dockerhub / docker-build-and-push (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
build | Build and Push Docker Image to dockerhub / docker-build-and-push (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges Core Functionality (3.11) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges Core Functionality (3.12) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges with Different Graph Databases (kuzu, kuzu) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges with Different Graph Databases (neo4j, neo4j) (push) Has been cancelled
Weighted Edges Tests / Test Weighted Edges Examples (push) Has been cancelled
Weighted Edges Tests / Code Quality for Weighted Edges (push) Has been cancelled
29 行
1.0 KiB
Python
29 行
1.0 KiB
Python
from .config import get_migration_config
|
|
from .create_relational_engine import create_relational_engine
|
|
|
|
|
|
def get_migration_relational_engine():
|
|
"""
|
|
Create and return a relational database engine using the migration configuration.
|
|
|
|
This function fetches the migration configuration details and uses them to create a
|
|
relational database engine. It does not explicitly handle exceptions but may propagate
|
|
any errors raised in the underlying functions.
|
|
|
|
Returns:
|
|
--------
|
|
|
|
A relational database engine instance configured with the migration settings.
|
|
"""
|
|
migration_config = get_migration_config()
|
|
|
|
return create_relational_engine(
|
|
db_path=migration_config.migration_db_path,
|
|
db_name=migration_config.migration_db_name,
|
|
db_host=migration_config.migration_db_host,
|
|
db_port=migration_config.migration_db_port,
|
|
db_username=migration_config.migration_db_username,
|
|
db_password=migration_config.migration_db_password,
|
|
db_provider=migration_config.migration_db_provider,
|
|
)
|