Versions in this module Expand all Collapse all v0 v0.0.1 Feb 5, 2021 Changes in this version + func CalculateKeysHash(verifierType int, key1 []byte, key2 []byte) ([]byte, error) + func EncryptPassword(password string, key []byte) (string, error) + func EncryptSessionKey(padding bool, encKey []byte, sessionKey []byte) (string, error) + func HexStringToBytes(input string) ([]byte, error) + func PKCS5Padding(cipherText []byte, blockSize int) []byte + func TZBytes() []byte + type AuthObject struct + ClientSessKey []byte + EClientSessKey string + EPassword string + EServerSessKey string + KeyHash []byte + Salt string + ServerSessKey []byte + VerifierType int + func NewAuthObject(username string, password string, tcpNego *TCPNego, session *network.Session) (*AuthObject, error) + func (obj *AuthObject) VerifyResponse(response string) bool + func (obj *AuthObject) Write(connOption *network.ConnectionOption, mode LogonMode, session *network.Session) error + type Connection struct + LogonMode LogonMode + NLSData NLSData + SessionProperties map[string]string + State ConnectionState + func NewConnection(databaseUrl string) (*Connection, error) + func (conn *Connection) Begin() (driver.Tx, error) + func (conn *Connection) Close() (err error) + func (conn *Connection) GetNLS() (*NLSData, error) + func (conn *Connection) Open() error + func (conn *Connection) Ping(ctx context.Context) error + func (conn *Connection) Prepare(query string) (driver.Stmt, error) + type ConnectionState int + const Closed + const Opened + type ConnectionString struct + ApplicationEdition string + ConnectionLifeTime int + ConnectionPoolTimeout int + ConnectionTimeOut int + ContextConnection bool + DBAPrivilege DBAPrivilege + DataSource string + DecrPoolSize int + EnList EnList + HaEvent bool + Host string + IncrPoolSize int + InstanceName string + LoadBalance bool + MaxPoolSize int + MetadataBooling bool + MinPoolSize int + Password string + PasswordSecurityInfo bool + PasswordlessConString string + PoolReglator int + Pooling bool + Port int + PromotableTransaction PromotableTransaction + ProxyPassword string + ProxyUserID string + SID string + SelfTuning bool + ServiceName string + StmtCachePurge bool + StmtCacheSize int + Trace string + UserID string + ValidateConnection bool + func NewConnectionString() *ConnectionString + func NewConnectionStringFromString(connectionString string) (*ConnectionString, error) + func (conStr *ConnectionString) Parse(s string) error + type DBAPrivilege int + const NONE + const SYSDBA + const SYSOPER + func DBAPrivilegeFromString(s string) DBAPrivilege + type DBVersion struct + Info string + MajorVersion int + MinorVersion int + Number uint16 + PatchsetVersion int + Text string + func GetDBVersion(session *network.Session) (*DBVersion, error) + type DataSet struct + Cols []ParameterInfo + ColumnCount int + MaxRowSize int + RowCount int + Rows []Row + UACBufferLength int + func (dataSet *DataSet) Close() error + func (dataSet *DataSet) Columns() []string + func (dataSet *DataSet) Next(dest []driver.Value) error + func (dataSet DataSet) ColumnTypeDatabaseTypeName(index int) string + func (dataSet DataSet) ColumnTypeLength(index int) (length int64, ok bool) + func (dataSet DataSet) ColumnTypeNullable(index int) (nullable, ok bool) + func (dataSet DataSet) Trace(t trace.Tracer) + type DataTypeNego struct + CompileTimeCaps []byte + DBTimeZone []byte + DataTypeRepFor1100 int16 + MessageCode uint8 + RuntimeCap []byte + RuntimeTypeAndRep []int16 + Server *TCPNego + TypeAndRep []int16 + type EnList int + const DYNAMIC + const FALSE + const TRUE + func EnListFromString(s string) EnList + type Lob struct + type LogonMode int + const NoNewPass + const SysDba + const SysOper + const UserAndPass + type NLSData struct + Calender string + Comp string + Currency string + DateFormat string + DateLang string + DualCurrency string + IsoCurrency string + LengthSemantics string + NCharConvExcep string + NumericChars string + Sort string + Timestamp string + TimestampTZ string + type OracleType int + const BDouble + const BFloat + const CHAR + const CHARZ + const DATE + const FLOAT + const IBDouble + const IBFloat + const IntervalDS + const IntervalDS_DTY + const IntervalYM + const IntervalYM_DTY + const LONG + const LongRaw + const LongVarChar + const LongVarRaw + const NCHAR + const NOT + const NUMBER + const NullStr + const OCIBlobLocator + const OCIClobLocator + const OCIDate + const OCIFileLocator + const OCIRef + const OCIString + const RAW + const REFCURSOR + const ROWID + const ResultSet + const SB1 + const SB2 + const SB4 + const TimeStamp + const TimeStampDTY + const TimeStampLTZ_DTY + const TimeStampTZ + const TimeStampTZ_DTY + const TimeStampeLTZ + const TimeTZ + const UINT + const UROWID + const VARCHAR + const VarNum + const VarRaw + const XMLType + func (i OracleType) String() string + type ParameterDirection int + const InOut + const Input + const Output + const RetVal + type ParameterInfo struct + AllowNull bool + BValue []byte + CharsetForm int + CharsetID int + ColAlias string + ContFlag int + DataType OracleType + Direction ParameterDirection + Flag uint8 + IsNull bool + IsXmlType bool + MaxCharLen int + MaxLen int + MaxNoOfArrayElements int + Name string + Precision uint8 + Scale uint8 + ToID []byte + Value driver.Value + Version int + type ParameterType int + const Number + const String + type PromotableTransaction int + const Local + const Promotable + type QueryResult struct + func (rs *QueryResult) LastInsertId() (int64, error) + func (rs *QueryResult) RowsAffected() (int64, error) + type RefCursor struct + MaxRowSize int + func (cursor *RefCursor) Close() error + func (cursor *RefCursor) Query() (*DataSet, error) + type Row []driver.Value + type Stmt struct + func NewStmt(text string, conn *Connection) *Stmt + func (stmt *Stmt) AddParam(name string, val driver.Value, size int, direction ParameterDirection) + func (stmt *Stmt) AddRefCursorParam(name string) + func (stmt *Stmt) Close() error + func (stmt *Stmt) Exec(args []driver.Value) (driver.Result, error) + func (stmt *Stmt) NewParam(name string, val driver.Value, size int, direction ParameterDirection) *ParameterInfo + func (stmt *Stmt) NumInput() int + func (stmt *Stmt) Query(args []driver.Value) (driver.Rows, error) + type StmtInterface interface + type StmtType int + const DML + const OTHERS + const PLSQL + const SELECT + type TCPNego struct + CharsetElem int + MessageCode uint8 + OracleVersion int + ProtocolServerString string + ProtocolServerVersion uint8 + ServerCharset int + ServerCompileTimeCaps []byte + ServerFlags uint8 + ServerRuntimeCaps []byte + ServernCharset int + func NewTCPNego(session *network.Session) (*TCPNego, error) + type Transaction struct + func (tx *Transaction) Commit() error + func (tx *Transaction) Rollback() error