Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAmbiguousDSN = errors.New("ambiguous DB2 DSN: a brace-quoted value appears to contain a later field")
ErrAmbiguousDSN means a brace-quoted value appears to contain a later KEYWORD=value field. The DSN is rejected rather than guessed at, since it may carry credentials.
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 or ambiguous.
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. An ambiguous DSN is treated as not native.
Types ¶
This section is empty.