sling-cli icon indicating copy to clipboard operation
sling-cli copied to clipboard

Db2 Support

Open rupurt opened this issue 2 years ago • 5 comments

Howdy,

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

rupurt avatar Sep 21 '23 16:09 rupurt

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

flarco avatar Sep 21 '23 21:09 flarco

Legendary :raised_hands:

rupurt avatar Sep 21 '23 22:09 rupurt

Notes

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

cd $HOME/go/pkg/mod/github.com/ibmdb/[email protected]/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

flarco avatar Feb 08 '24 10:02 flarco

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

rupurt avatar Feb 08 '24 17:02 rupurt

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

kristianandre avatar Jun 03 '24 08:06 kristianandre