No project description provided
Project description
Grai SQL Server Integration
The SQL Server integration synchronizes metadata from your SQL Server database into your Grai data lineage graph.
Tests assume you have working installation of pyodbc and a supported ODBC driver installed on your host machine.
Installation Notes
Installing ODBC drivers can be particularly tricky on M1 machines. You'll need to install the unixodbc drivers through brew first
brew install unixodbc
You can attempt installing pyodbc directly at this point though I was forced to set LDFLAGS and CPPFlags in my bashrc/zshrc file, i.e.
export LDFLAGS="$LDFLAGS -L$(brew --prefix unixodbc)/lib"
export CPPFLAGS="$CPPFLAGS -I$(brew --prefix unixodbc)/include"
At this point you should be able to pip install pyodbc
successfully
and import the package from within python. However, you'll still require an
ODBC driver in order to connect with an MS SQL server. There are multiple options
for potential drivers but ODBC 18 from Microsoft has worked in testing.
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update
HOMEBREW_ACCEPT_EULA=Y brew install msodbcsql18 mssql-tools18
If you continue to experience issues you might try creating these symlinks below.
sudo ln -s /opt/homebrew/etc/odbcinst.ini /etc/odbcinst.ini
sudo ln -s /opt/homebrew/etc/odbc.ini /etc/odbc.ini
When installing locally, if you get an error like ImportError: dlopen(/opt/homebrew/lib/python3.11/site-packages/pyodbc.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace (_SQLAllocHandle)
, you can try uninstalling pip uninstall pyodbc
and then reinstall with build pip install --no-binary :all: pyodbc
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file grai_source_mssql-0.1.3.tar.gz
.
File metadata
- Download URL: grai_source_mssql-0.1.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0f03bafabee2cadfcce8563f29f4e9ee237c16a5b695efeb076230f0530d8d4 |
|
MD5 | dc63af5cf105e7960ba7bebd4a04a2fe |
|
BLAKE2b-256 | fb09f77de4c3eda441a4f5b1fa9969468ff1b5663ab813868a45b0da6152c090 |
File details
Details for the file grai_source_mssql-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: grai_source_mssql-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 099af05e4bb9625b7ea477d97cbeb2491548d911aed7628d8f6f553d9fca4fc6 |
|
MD5 | 7d90238d92954d1fc1c20a193309ada4 |
|
BLAKE2b-256 | 025ff7bc667bb7bb54fa474fcc54a052a60b42a3cc083198cd598f03f40a20fa |