Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect is a stub used when DB2 support is not compiled in. The go_ibm_db driver requires cgo and the IBM clidriver at build time, so it is only included when building with -tags db2.
func DSNDatabase ¶ added in v0.5.15
DSNDatabase returns the DATABASE keyword value from a native DB2 DSN, or "" if absent.
func IsAuthError ¶ added in v0.5.15
IsAuthError is a stub; the DB2 driver error types are unavailable without -tags db2.
func IsNativeDSN ¶ added in v0.5.15
IsNativeDSN reports whether dsn is DB2's native ODBC keyword=value form.
func ParseNativeDSN ¶ added in v0.5.15
ParseNativeDSN reports whether dsn is DB2's native ODBC keyword=value form (not a URL), returning its DATABASE value if present. HOSTNAME, not DATABASE alone, is the native marker, since other engines' ODBC/ADO strings also carry DATABASE; every caller shares this one detector to avoid drift.
Types ¶
This section is empty.