-
Notifications
You must be signed in to change notification settings - Fork 201
Add Support for Postgres Inet and Vector Types #815
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
610ce21
feat(postgres): integrate pgvector support in Postgres transport
c5cfe1a
feat(arrow): enhance ArrowAssoc and Postgres transport for Float32Arr…
7c20a8e
feat(postgres): enhance Postgres transport with IpInet and pgvector s…
9259112
feat(tests): add tests for Postgres Inet and vector types
71baaf5
Merge branch 'sfu-db:main' into main
holicc d8dfa9c
cargo fmt
344c5e9
chore(ci): update Postgres service image to pgvector/pgvector:pg17 in…
6066588
docs: update CONTRIBUTING.md and Postgres documentation; enhance Post…
98a7f59
cargo fmt
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| FROM mcr.microsoft.com/devcontainers/rust:1 | ||
|
|
||
| # Install system dependencies | ||
| RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
| && apt-get -y install --no-install-recommends \ | ||
| sqlite3 \ | ||
| pkg-config \ | ||
| libclang-dev \ | ||
| postgresql-client \ | ||
| default-mysql-client \ | ||
| && apt-get clean -y \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install Python and Poetry | ||
| ENV POETRY_HOME=/opt/poetry | ||
| ENV POETRY_VERSION=2.1.3 | ||
| ENV PATH="/opt/poetry/bin:$PATH" | ||
| RUN curl -sSL https://install.python-poetry.org | python3 - \ | ||
| && poetry config virtualenvs.create false | ||
|
|
||
| # Install Rust components | ||
| RUN rustup component add rustfmt clippy \ | ||
| && cargo install cargo-watch \ | ||
| && cargo install just | ||
|
|
||
| # Set environment variables | ||
| ENV PATH="/home/vscode/.local/bin:${PATH}" | ||
| ENV PYTHONPATH="/workspaces/connector-x:${PYTHONPATH}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "name": "ConnectorX Development", | ||
| "dockerComposeFile": [ | ||
| "docker-compose.yml" | ||
| ], | ||
| "service": "connectorx", | ||
| "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "rust-lang.rust-analyzer" | ||
| ], | ||
| "settings": { | ||
| "rust-analyzer.checkOnSave.command": "clippy" | ||
| } | ||
| } | ||
| }, | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/rust:1": "latest" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| services: | ||
| connectorx: | ||
| build: | ||
| context: .. | ||
| dockerfile: .devcontainer/Dockerfile | ||
| volumes: | ||
| - ..:/workspaces/connectorx:cached | ||
| command: sleep infinity | ||
| depends_on: | ||
| - postgres | ||
| - mysql | ||
| networks: | ||
| - connectorx-network | ||
|
|
||
| postgres: | ||
| image: pgvector/pgvector:pg17 | ||
| environment: | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: postgres | ||
| POSTGRES_DB: connectorx | ||
| ports: | ||
| - "5433:5432" | ||
| volumes: | ||
| - postgres_data:/var/lib/postgresql/data | ||
| networks: | ||
| - connectorx-network | ||
|
|
||
| mysql: | ||
| image: ghcr.io/wangxiaoying/mysql:latest | ||
| environment: | ||
| MYSQL_DATABASE: mysql | ||
| MYSQL_ROOT_PASSWORD: mysql | ||
| LANG: C.UTF-8 | ||
| ports: | ||
| - "3306:3306" | ||
| volumes: | ||
| - mysql_data:/var/lib/mysql | ||
| networks: | ||
| - connectorx-network | ||
|
|
||
| networks: | ||
| connectorx-network: | ||
| driver: bridge | ||
|
|
||
| volumes: | ||
| postgres_data: | ||
| mysql_data: | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.