Altibase for SQLAlchemy
Project description
sqlalchemy-altibase7
- Altibase support for SQLAlchemy implemented as an external dialect.
- It is tested on Altibase v7.
- This source code is maintained on https://github.com/hesslee/sqlalchemy-altibase7
- This source code is based on https://pypi.org/project/sqlalchemy-altibase
- This package is uploaded on https://pypi.org/project/sqlalchemy-altibase7
Changes from sqlalchemy-altibase
- It is mainly supplemented for langchain connectivity.
- sqlalchemy version upper limit requirement is removed.
Prereqisite
- Download and install Altibase server and client from http://support.altibase.com/en/product
- Unixodbc setting for Linux
- ODBC DSN setting for Windows
Unixodbc setting example for Linux
- install : sudo apt-get install unixodbc-dev
- example configuration :
$ cat /etc/odbc.ini
[PYODBC]
Driver = /home/hess/work/altidev4/altibase_home/lib/libaltibase_odbc-64bit-ul64.so
Database = mydb
ServerType = Altibase
Server = 127.0.0.1
Port = 21121
UserName = SYS
Password = MANAGER
FetchBuffersize = 64
ReadOnly = no
$ cat /etc/odbcinst.ini
[ODBC]
Trace=Yes
TraceFile=/tmp/odbc_trace.log
ODBC DSN setting example for Windows
- Altibase Windows ODBC driver is registered during Altibase Windows client installation procedure.
- Add a ODBC DSN for Altibase.
- example configuration :
[Altibase Connection Config]
Windows DSN Name: PYODBC
host(name or IP): 192.168.1.210
Port(default 20300): 21121
User: SYS
Password: MANAGER
Database: mydb
NLS_USE: UTF-8
sqlalchemy-altibase7 using langchain
- install : pip install sqlalchemy-altibase7
- reference : https://python.langchain.com/v0.1/docs/use_cases/sql/
- test preparation : Populate sample data into Altibase database using "test/Chinook_Altibase.sql" file in this repository.
- test programs
- langchain_chain.py : using chain
- langchain_agent.py : using sql agent
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlalchemy_altibase7-0.0.6.tar.gz.
File metadata
- Download URL: sqlalchemy_altibase7-0.0.6.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a77e9556c8f794aac2c790027fb942c1311e38caa5559fa368d507787b0a00dd
|
|
| MD5 |
1242844abcf04b550dae962872d37e5f
|
|
| BLAKE2b-256 |
ac6503f9dd70a5fef23f5aa14f48f0ea6da57dc4a7e3e5e9f9438f71f16f57f1
|
File details
Details for the file sqlalchemy_altibase7-0.0.6-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_altibase7-0.0.6-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abe886bb0188be041e50440adef1452e2660cf8108949b5925819cfcb1eaebbe
|
|
| MD5 |
d2cd12efeedf13533fe168281da67365
|
|
| BLAKE2b-256 |
4845e2ed26741b953957035ed104ddded7fd67788f91c8670b92381364941e56
|