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
450 stars 34 forks source link

Db2 Support #12

Open rupurt opened 1 year ago

rupurt commented 1 year ago

Howdy,

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

flarco commented 1 year ago

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

rupurt commented 1 year ago

Legendary :raised_hands:

flarco commented 9 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 9 months ago

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

kristianandre commented 6 months ago

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