slingdata-io / sling-cli

Sling is a CLI tool that extracts data from a source storage/database and loads it in a target storage/database.
https://docs.slingdata.io
GNU General Public License v3.0
347 stars 22 forks source link

Db2 Support #12

Open rupurt opened 10 months ago

rupurt commented 10 months ago

Howdy,

Love how simple the dev ex for this tool! Do you have any plans to support IBM Db2?

flarco commented 10 months ago

Hello, thanks. Sure, I'll try to tackle that soon 👍

rupurt commented 10 months ago

Legendary :raised_hands:

flarco commented 5 months ago

Notes

To install C lib in Linux according to https://github.com/ibmdb/go_ibm_db

cd $HOME/go/pkg/mod/github.com/ibmdb/go_ibm_db@v0.4.3/installer
go run setup.go

To Build, use env below:

export IBM_DB_HOME=$HOME/go/pkg/mod/github.com/ibmdb/clidriver
export CGO_CFLAGS=-I$IBM_DB_HOME/include
export CGO_LDFLAGS=-L$IBM_DB_HOME/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$IBM_DB_HOME/lib
rupurt commented 5 months ago

@flarco if it helps I maintain a nix flake of odbc drivers https://github.com/rupurt/odbc-drivers-nix

kristianandre commented 1 month ago

This would be quite useful for us. Is it still being worked on?