master
go 25 lines 773 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build !disable_ibm_direct_driver
4
5 package dbdriver
6
7 // No imports needed for this stub
8
9 func init() {
10 // Register IBM DB2 driver as not available (using ODBC instead)
11 Register("go_ibm_db", &Driver{
12 Name: "go_ibm_db",
13 Description: "IBM DB2 client driver (disabled - using ODBC instead)",
14 Available: false,
15 RequiresCGO: true,
16 RequiresLibs: []string{"IBM DB2 client libraries (not installed)"},
17 DSNFormat: "DATABASE=db;HOSTNAME=host;PORT=port;PROTOCOL=TCPIP;UID=user;PWD=pass",
18 })
19 }
20
21 // BuildDB2DSN creates a DB2 connection string - redirects to ODBC format
22 func BuildDB2DSN(config *ConnectionConfig) string {
23 // Convert to ODBC format instead of IBM DB2 format
24 return BuildODBCDSN(config)
25 }