Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sqlalchemy as dlt destination #137

Merged
merged 8 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .github/workflows/test_neo4j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ jobs:
name: docs changes
uses: ./.github/workflows/get_docs_changes.yml

setup_docker:
name: Set up Docker Buildx
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

run_neo4j_integration_test:
name: test
needs: get_docs_changes
Expand All @@ -35,18 +28,6 @@ jobs:
run:
shell: bash

services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432

steps:
- name: Check out
uses: actions/checkout@master
Expand All @@ -66,33 +47,11 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Create .cognee_system directory and print path
run: |
mkdir .cognee_system
echo $(pwd)/.cognee_system

- name: Wait for PostgreSQL to be ready
run: |
echo "Waiting for PostgreSQL to be ready..."
until pg_isready -h localhost -p 5432 -U cognee; do
sleep 1
done

- name: Run default Neo4j
env:
ENV: 'dev'
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GRAPH_DATABASE_URL: ${{ secrets.NEO4J_API_URL }}
GRAPH_DATABASE_PASSWORD: ${{ secrets.NEO4J_API_KEY }}
GRAPH_DATABASE_USERNAME: "neo4j"
DB_USER: cognee
DB_PASSWORD: cognee
DB_NAME: cognee_db
DB_HOST: localhost
DB_PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__HOST: localhost
DESTINATION__POSTGRES__CREDENTIALS__PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__USERNAME: cognee
DESTINATION__POSTGRES__CREDENTIALS__PASSWORD: cognee
DESTINATION__POSTGRES__CREDENTIALS__DATABASE: cognee_db
run: poetry run python ./cognee/tests/test_neo4j.py
49 changes: 0 additions & 49 deletions .github/workflows/test_python_3_10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ jobs:
name: docs changes
uses: ./.github/workflows/get_docs_changes.yml

setup_docker:
name: Set up Docker Buildx
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

run_common:
name: test
needs: get_docs_changes
Expand All @@ -38,19 +29,6 @@ jobs:
run:
shell: bash

services:
postgres:
image: postgres:latest
env:
PGUSER: cognee
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432

steps:
- name: Check out
uses: actions/checkout@master
Expand All @@ -71,40 +49,13 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Create .cognee_system directory and print path
run: |
mkdir .cognee_system
echo $(pwd)/.cognee_system

- name: Wait for PostgreSQL to be ready
env:
PGUSER: cognee
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
run: |
echo "Waiting for PostgreSQL to be ready..."
until pg_isready -h localhost -p 5432 -U cognee; do
sleep 1
done

- name: Run tests
run: poetry run pytest tests/

- name: Run default basic pipeline
env:
ENV: 'dev'
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
DB_HOST: localhost
DB_USERNAME: cognee
DB_PASSWORD: cognee
DB_DATABASE: cognee_db
DB_PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__HOST: localhost
DESTINATION__POSTGRES__CREDENTIALS__PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__USERNAME: cognee
DESTINATION__POSTGRES__CREDENTIALS__PASSWORD: cognee
DESTINATION__POSTGRES__CREDENTIALS__DATABASE: cognee_db
run: poetry run python ./cognee/tests/test_library.py

- name: Clean up disk space
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/test_python_3_11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ jobs:
name: docs changes
uses: ./.github/workflows/get_docs_changes.yml

setup_docker:
name: Set up Docker Buildx
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

run_common:
name: test
needs: get_docs_changes
Expand All @@ -38,19 +29,6 @@ jobs:
run:
shell: bash

services:
postgres:
image: postgres:latest
env:
PGUSER: cognee
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432

steps:
- name: Check out
uses: actions/checkout@master
Expand All @@ -71,40 +49,13 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Create .cognee_system directory and print path
run: |
mkdir .cognee_system
echo $(pwd)/.cognee_system

- name: Wait for PostgreSQL to be ready
env:
PGUSER: cognee
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
run: |
echo "Waiting for PostgreSQL to be ready..."
until pg_isready -h localhost -p 5432 -U cognee; do
sleep 1
done

- name: Run tests
run: poetry run pytest tests/

- name: Run default basic pipeline
env:
ENV: 'dev'
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
DB_HOST: localhost
DB_USERNAME: cognee
DB_PASSWORD: cognee
DB_DATABASE: cognee_db
DB_PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__HOST: localhost
DESTINATION__POSTGRES__CREDENTIALS__PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__USERNAME: cognee
DESTINATION__POSTGRES__CREDENTIALS__PASSWORD: cognee
DESTINATION__POSTGRES__CREDENTIALS__DATABASE: cognee_db
run: poetry run python ./cognee/tests/test_library.py

- name: Clean up disk space
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/test_python_3_9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ jobs:
name: docs changes
uses: ./.github/workflows/get_docs_changes.yml

setup_docker:
name: Set up Docker Buildx
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

run_common:
name: test
needs: get_docs_changes
Expand All @@ -38,19 +29,6 @@ jobs:
run:
shell: bash

services:
postgres:
image: postgres:latest
env:
PGUSER: cognee
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432

steps:
- name: Check out
uses: actions/checkout@master
Expand All @@ -71,40 +49,13 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Create .cognee_system directory and print path
run: |
mkdir .cognee_system
echo $(pwd)/.cognee_system

- name: Wait for PostgreSQL to be ready
env:
PGUSER: cognee
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
run: |
echo "Waiting for PostgreSQL to be ready..."
until pg_isready -h localhost -p 5432 -U cognee; do
sleep 1
done

- name: Run tests
run: poetry run pytest tests/

- name: Run default basic pipeline
env:
ENV: 'dev'
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
DB_HOST: localhost
DB_USERNAME: cognee
DB_PASSWORD: cognee
DB_DATABASE: cognee_db
DB_PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__HOST: localhost
DESTINATION__POSTGRES__CREDENTIALS__PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__USERNAME: cognee
DESTINATION__POSTGRES__CREDENTIALS__PASSWORD: cognee
DESTINATION__POSTGRES__CREDENTIALS__DATABASE: cognee_db
run: poetry run python ./cognee/tests/test_library.py

- name: Clean up disk space
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/test_qdrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ jobs:
name: docs changes
uses: ./.github/workflows/get_docs_changes.yml

setup_docker:
name: Set up Docker Buildx
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

run_qdrant_integration_test:
name: test
needs: get_docs_changes
Expand All @@ -35,18 +28,6 @@ jobs:
run:
shell: bash

services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: cognee
POSTGRES_PASSWORD: cognee
POSTGRES_DB: cognee_db
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432

steps:
- name: Check out
uses: actions/checkout@master
Expand All @@ -66,32 +47,10 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Create .cognee_system directory and print path
run: |
mkdir .cognee_system
echo $(pwd)/.cognee_system

- name: Wait for PostgreSQL to be ready
run: |
echo "Waiting for PostgreSQL to be ready..."
until pg_isready -h localhost -p 5432 -U cognee; do
sleep 1
done

- name: Run default Qdrant
env:
ENV: 'dev'
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
VECTOR_DB_URL: ${{ secrets.QDRANT_API_URL }}
VECTOR_DB_KEY: ${{ secrets.QDRANT_API_KEY }}
DB_USER: cognee
DB_PASSWORD: cognee
DB_NAME: cognee_db
DB_HOST: localhost
DB_PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__HOST: localhost
DESTINATION__POSTGRES__CREDENTIALS__PORT: 5432
DESTINATION__POSTGRES__CREDENTIALS__USERNAME: cognee
DESTINATION__POSTGRES__CREDENTIALS__PASSWORD: cognee
DESTINATION__POSTGRES__CREDENTIALS__DATABASE: cognee_db
run: poetry run python ./cognee/tests/test_qdrant.py
Loading
Loading