Versions in this module Expand all Collapse all v2 v2.8.22 Oct 10, 2024 Changes in this version type DBAPrivilege + const SYSBACKUP + const SYSDG + const SYSKM type DatabaseInfo + Location string type SessionInfo + TLSConfig *tls.Config v2.8.21 Sep 14, 2024 v2.8.20 Sep 11, 2024 Changes in this version type DBAPrivilege + const SYSASM + const SYSBKP + const SYSDGD + const SYSKMT + const SYSRAC type DatabaseInfo + func (info *DatabaseInfo) UpdateDatabaseInfoForRedirect(redirectAddr string, reconnectData string) error v2.8.19 May 22, 2024 Changes in this version type SessionInfo + func (si *SessionInfo) RegisterDial(dialer func(ctx context.Context, network, address string) (net.Conn, error)) v2.8.18 May 14, 2024 v2.8.17 May 8, 2024 v2.8.16 May 4, 2024 v2.8.15 May 2, 2024 v2.8.14 Apr 25, 2024 v2.8.13 Apr 23, 2024 Changes in this version type ConnectionConfig + TraceFilePath string v2.8.12 Apr 22, 2024 Changes in this version + type AdvNegoServiceInfo struct + AuthService []string + EncServiceLevel int + IntServiceLevel int + type AuthType int + const Kerberos + const Normal + const OS + const TCPS + type ClientInfo struct + CharsetID int + Cid string + DomainName string + DriverName string + HostName string + Language string + OSPassword string + OSUserName string + PID int + ProgramName string + ProgramPath string + Territory string + UseKerberos bool + type ConnectionConfig struct + Lob LobFetch + PrefetchRows int + TraceDir string + Tracer trace.Tracer + func ParseConfig(dsn string) (*ConnectionConfig, error) + func (config *ConnectionConfig) ConnectionData() string + type DBAPrivilege int + const NONE + const SYSDBA + const SYSOPER + func DBAPrivilegeFromString(s string) DBAPrivilege + type DatabaseInfo struct + AuthType AuthType + DBAPrivilege DBAPrivilege + DBName string + InstanceName string + Password string + ProxyClientName string + SID string + Servers []ServerAddr + ServiceName string + UserID string + Wallet *Wallet + func (info *DatabaseInfo) AddServer(server ServerAddr) + func (info *DatabaseInfo) GetActiveServer(jump bool) *ServerAddr + func (info *DatabaseInfo) ResetServerIndex() + func (info *DatabaseInfo) UpdateDatabaseInfo(connStr string) error + type DialerContext interface + DialContext func(ctx context.Context, network, address string) (net.Conn, error) + type LobFetch int + const INLINE + const STREAM + type ServerAddr struct + Addr string + Port int + Protocol string + func ExtractServers(connStr string) ([]ServerAddr, error) + func (serv *ServerAddr) IsEqual(input *ServerAddr) bool + func (serv *ServerAddr) NetworkAddr() string + type SessionInfo struct + Dialer DialerContext + EnableOOB bool + Protocol string + SSL bool + SSLVerify bool + SSLVersion string + SessionDataUnitSize uint32 + Timeout time.Duration + TransportDataUnitSize uint32 + UnixAddress string + func (si *SessionInfo) UpdateSSL(server *ServerAddr) error + type Wallet struct + CertificateRequests [][]byte + Certificates [][]byte + PrivateKeys [][]byte + func NewWallet(filePath string) (*Wallet, error) + type WalletCredential struct