Versions in this module Expand all Collapse all v1 v1.0.0 Feb 10, 2023 Changes in this version + func BuildJDBC(user, password, connStr string, options map[string]string) string + func BuildUrl(server string, port int, service, user, password string, ...) string + func NewWallet(filePath string) (*wallet, error) + func SetNTSAuth(newNTSManager advanced_nego.NTSAuthInterface) + func TZBytes() []byte + type AuthObject struct + ClientSessKey []byte + EClientSessKey string + EPassword string + EServerSessKey string + ESpeedyKey string + KeyHash []byte + Salt string + ServerSessKey []byte + VerifierType int + func (obj *AuthObject) Write(connOption *network.ConnectionOption, mode LogonMode, session *network.Session) error + type AuthType int + const Kerberos + const Normal + const OS + type BFile struct + func NewBFile(connection *Connection, dirName, fileName string) (*BFile, error) + func (file *BFile) Close() error + func (file *BFile) Exists() (bool, error) + func (file *BFile) GetLength() (int64, error) + func (file *BFile) IsOpen() bool + func (file *BFile) Open() error + func (file *BFile) Read() ([]byte, error) + func (file *BFile) ReadBytesFromPos(pos, count int64) ([]byte, error) + func (file *BFile) ReadFromPos(pos int64) ([]byte, error) + func (file *BFile) Scan(value interface{}) error + type Blob struct + Data []byte + Valid bool + func (val *Blob) UnmarshalJSON(data []byte) error + func (val Blob) MarshalJSON() ([]byte, error) + type Clob struct + String string + Valid bool + func (val *Clob) UnmarshalJSON(data []byte) error + func (val Clob) MarshalJSON() ([]byte, 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) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) + func (conn *Connection) BulkInsert(sqlText string, rowNum int, columns ...[]driver.Value) (*QueryResult, error) + func (conn *Connection) CheckNamedValue(named *driver.NamedValue) error + func (conn *Connection) Close() (err error) + func (conn *Connection) Exec(text string, args ...driver.Value) (driver.Result, error) + func (conn *Connection) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) + func (conn *Connection) GetNLS() (*NLSData, error) + func (conn *Connection) Open() error + func (conn *Connection) OpenWithContext(ctx context.Context) error + func (conn *Connection) Ping(ctx context.Context) error + func (conn *Connection) Prepare(query string) (driver.Stmt, error) + func (conn *Connection) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + func (conn *Connection) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) + func (conn *Connection) RegisterType(typeName string, typeObj interface{}) error + func (conn *Connection) RegisterType2(typeName string, typeObj interface{}) error + func (conn *Connection) RegisterTypeWithOwner(owner, typeName string, typeObj interface{}) error + func (conn *Connection) SetStringConverter(converter converters.IStringConverter) + type ConnectionState int + const Closed + const Opened + type ConnectionString struct + DBAPrivilege DBAPrivilege + DataSource string + Host string + Port int + Trace string + WalletPath string + 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 + func (dataSet *DataSet) Close() error + func (dataSet *DataSet) Columns() []string + func (dataSet *DataSet) Err() error + func (dataSet *DataSet) Next(dest []driver.Value) error + func (dataSet *DataSet) Next_() bool + func (dataSet *DataSet) Scan(dest ...interface{}) 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 + DataTypeRepFor1200 int16 + MessageCode uint8 + RuntimeCap []byte + RuntimeTypeAndRep []int16 + Server *TCPNego + TypeAndRep []int16 + type Lob struct + func (lob *Lob) GetLobId(locator []byte) []byte + type LogonMode int + const NoNewPass + const SysDba + const SysOper + const UserAndPass + const WithNewPass + type NClob Clob + func (val *NClob) UnmarshalJSON(data []byte) error + func (val NClob) MarshalJSON() ([]byte, error) + type NLSData struct + Calender string + Charset string + Comp string + Currency string + DateFormat string + DateLang string + DualCurrency string + IsoCurrency string + Language string + LengthSemantics string + NCharConvExcep string + NCharConvImp string + NTimezoneFormat string + NumericChars string + Sort string + TTimezoneFormat string + Territory string + TimeFormat string + Timestamp string + TimestampTZ string + UnionCurrency string + func (nls *NLSData) SaveNLSValue(key, value string, code int) + type NVarChar string + func (val *NVarChar) EncodeValue(param *ParameterInfo, connection *Connection) error + func (val *NVarChar) Scan(value interface{}) error + func (val *NVarChar) UnmarshalJSON(data []byte) error + func (val *NVarChar) Value() (driver.Value, error) + func (val NVarChar) MarshalJSON() ([]byte, error) + type NullNVarChar struct + NVarChar NVarChar + Valid bool + func (val *NullNVarChar) Scan(value interface{}) error + func (val *NullNVarChar) UnmarshalJSON(data []byte) error + func (val *NullNVarChar) Value() (driver.Value, error) + func (val NullNVarChar) MarshalJSON() ([]byte, error) + type NullTimeStamp struct + TimeStamp TimeStamp + Valid bool + func (val *NullTimeStamp) Scan(value interface{}) error + func (val *NullTimeStamp) UnmarshalJSON(data []byte) error + func (val *NullTimeStamp) Value() (driver.Value, error) + func (val NullTimeStamp) MarshalJSON() ([]byte, error) + type OracleConnector struct + func (connector *OracleConnector) Connect(ctx context.Context) (driver.Conn, error) + func (connector *OracleConnector) Dialer(dialer network.DialerContext) + func (connector *OracleConnector) Driver() driver.Driver + type OracleDriver struct + func (drv *OracleDriver) Open(name string) (driver.Conn, error) + func (drv *OracleDriver) OpenConnector(name string) (driver.Connector, error) + 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 NUMBER + const NullStr + const OCIBlobLocator + const OCIClobLocator + const OCIDate + const OCIFileLocator + const OCIRef + const OCIString + const OCIXMLType + 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 Out struct + Dest driver.Value + In bool + Size int + 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 + OutputVarPtr interface{} + Precision uint8 + Scale uint8 + ToID []byte + TypeName string + Value driver.Value + Version int + type ParameterType int + const Number + const String + type PromotableTransaction int + type QueryResult struct + func (rs *QueryResult) LastInsertId() (int64, error) + func (rs *QueryResult) RowsAffected() (int64, error) + type RefCursor struct + MaxRowSize int + func (cursor *RefCursor) Query() (*DataSet, error) + func (stmt *RefCursor) Close() error + func (stmt RefCursor) CanAutoClose() bool + 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) error + func (stmt *Stmt) AddRefCursorParam(name string) + func (stmt *Stmt) CheckNamedValue(named *driver.NamedValue) error + func (stmt *Stmt) Close() error + func (stmt *Stmt) Exec(args []driver.Value) (driver.Result, error) + func (stmt *Stmt) ExecContext(ctx context.Context, namedArgs []driver.NamedValue) (driver.Result, error) + func (stmt *Stmt) NewParam(name string, val driver.Value, size int, direction ParameterDirection) (*ParameterInfo, error) + func (stmt *Stmt) NumInput() int + func (stmt *Stmt) Query(args []driver.Value) (driver.Rows, error) + func (stmt *Stmt) QueryContext(ctx context.Context, namedArgs []driver.NamedValue) (driver.Rows, error) + func (stmt *Stmt) Query_(args []driver.Value) (*DataSet, error) + func (stmt Stmt) CanAutoClose() bool + type StmtInterface interface + CanAutoClose func() bool + Close func() error + 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 + type TimeStamp time.Time + func (val *TimeStamp) EncodeValue(param *ParameterInfo, _ *Connection) error + func (val *TimeStamp) Scan(value interface{}) error + func (val *TimeStamp) UnmarshalJSON(data []byte) error + func (val *TimeStamp) Value() (driver.Value, error) + func (val TimeStamp) MarshalJSON() ([]byte, error) + type Transaction struct + func (tx *Transaction) Commit() error + func (tx *Transaction) Rollback() error + type ValueEncoder interface + EncodeValue func(param *ParameterInfo, connection *Connection) error