Documentation
¶
Index ¶
- Constants
- func AddParameterCoder(db *sql.DB, go_type reflect.Type, oracle_type uint16, ...) error
- func AddSessionParam(db *sql.DB, key, value string) error
- func BuildJDBC(user, password, connStr string, options map[string]string) string
- func BuildUrl(server string, port int, service, user, password string, ...) string
- func DelSessionParam(db *sql.DB, key string)
- func NewBatch(array driver.Value) driver.Value
- func NewConnector(connString string) driver.Connector
- func ParseConfig(dsn string) (*configurations.ConnectionConfig, error)
- func RegisterConnConfig(config *configurations.ConnectionConfig)
- func RegisterType(db *sql.DB, typeName, arrayTypeName string, typeObj interface{}) error
- func RegisterTypeWithOwner(db *sql.DB, owner, typeName, arrayTypeName string, typeObj interface{}) error
- func SetNTSAuth(newNTSManager advanced_nego.NTSAuthInterface)
- func SetStringConverter(db GetDriverInterface, charset, nCharset converters.IStringConverter)
- func TZBytes() []byte
- func WrapRefCursor(ctx context.Context, q Querier, cursor *RefCursor) (*sql.Rows, error)
- type AuthObject
- type Connection
- func (conn *Connection) Begin() (driver.Tx, error)
- func (conn *Connection) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (conn *Connection) CheckNamedValue(nv *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) GetDBServerTimeZone() *time.Location
- func (conn *Connection) GetDBTimeZone() *time.Location
- func (conn *Connection) GetDefaultStringCoder() (converters.IStringConverter, error)
- func (conn *Connection) GetMaxRawLength() int64
- func (conn *Connection) GetMaxStringLength() int64
- func (conn *Connection) GetNLS() (*NLSData, error)
- func (conn *Connection) GetParameterCoder(input interface{}) (parameter_coder.OracleParameterCoder, error)
- func (conn *Connection) GetServerNStringCoder() converters.IStringConverter
- func (conn *Connection) GetServerStringCoder() converters.IStringConverter
- func (conn *Connection) GetSession() network.SessionReadWriter
- func (conn *Connection) GetStringCoder(charsetID, charsetForm int) (converters.IStringConverter, error)
- func (conn *Connection) IsValid() bool
- func (conn *Connection) Logoff() error
- func (conn *Connection) NewLobStreamer() types.LobStreamer
- 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) ProcessTCCResponse(msgCode uint8) error
- func (conn *Connection) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- func (conn *Connection) QueryRowContext(ctx context.Context, query string, args []driver.NamedValue) *DataSet
- func (conn *Connection) ResetSession(_ context.Context) error
- func (conn *Connection) SendTimeAsUTC() bool
- func (conn *Connection) TTCVersion() uint8
- type ConnectionCookie
- type ConnectionProperties
- type ConnectionState
- type DBVersion
- type DataSet
- func (dataSet *DataSet) Close() error
- func (dataSet *DataSet) ColumnTypeDatabaseTypeName(index int) string
- func (dataSet *DataSet) ColumnTypeLength(index int) (int64, bool)
- func (dataSet *DataSet) ColumnTypeNullable(index int) (nullable, ok bool)
- func (dataSet *DataSet) ColumnTypePrecisionScale(index int) (int64, int64, bool)
- func (dataSet *DataSet) ColumnTypeScanType(index int) reflect.Type
- func (dataSet *DataSet) Columns() []string
- func (dataSet *DataSet) Err() error
- func (dataSet *DataSet) HasNextResultSet() bool
- func (dataSet *DataSet) Next(dest []driver.Value) error
- func (dataSet *DataSet) NextResultSet() error
- func (dataSet *DataSet) Next_() bool
- func (dataSet *DataSet) Scan(dest ...interface{}) error
- func (dataSet *DataSet) Trace(t trace.Tracer)
- type DataTypeNego
- type GetDriverInterface
- type LobStream
- func (lob *LobStream) Close(opID int) error
- func (lob *LobStream) CreateTemporaryLocator(charsetID, charsetForm int) (ora_types.Locator, error)
- func (lob *LobStream) DatabaseVersionNumber() int
- func (lob *LobStream) EndContext(done chan struct{})
- func (lob *LobStream) Exists() (bool, error)
- func (lob *LobStream) FreeTemporaryLocator() error
- func (lob *LobStream) GetLobId() []byte
- func (lob *LobStream) GetLobReadMode() configurations.LobReadMode
- func (lob *LobStream) GetLobStreamMode() configurations.LobFetch
- func (lob *LobStream) GetLocator() ora_types.Locator
- func (lob *LobStream) GetSize() (size int64, err error)
- func (lob *LobStream) GetStringCoder() converters.StringCoder
- func (lob *LobStream) GetTracer() trace.Tracer
- func (lob *LobStream) Open(mode, opID int) error
- func (lob *LobStream) Read(offset, count int64) (data []byte, err error)
- func (lob *LobStream) SetLocator(locator ora_types.Locator)
- func (lob *LobStream) StartContext(ctx context.Context) chan struct{}
- func (lob *LobStream) Write(data []byte) error
- type LogonMode
- type NLSData
- type NullTimeStampTZ
- type ObjectParameter
- func (param *ObjectParameter) Copy() parameter_coder.OracleParameterCoder
- func (param *ObjectParameter) Decode(conn parameter_coder.IConnection) (interface{}, error)
- func (param *ObjectParameter) Encode(input interface{}, conn parameter_coder.IConnection) (err error)
- func (param *ObjectParameter) Init()
- func (param *ObjectParameter) Read(session network.SessionReader) error
- func (param *ObjectParameter) Write(session network.SessionWriter) error
- type OracleConnector
- func (connector *OracleConnector) Connect(ctx context.Context) (driver.Conn, error)
- func (connector *OracleConnector) Dialer(dialer configurations.DialerContext)
- func (connector *OracleConnector) Driver() driver.Driver
- func (connector *OracleConnector) WithKerberosAuth(auth configurations.KerberosAuthInterface)
- func (connector *OracleConnector) WithTLSConfig(config *tls.Config)
- func (connector *OracleConnector) WithWallet(reader io.Reader) error
- type OracleDriver
- type Out
- type ParameterDirection
- type ParameterInfo
- type Querier
- type QueryResult
- type RefCursor
- type ResultSet
- func (resultSet *ResultSet) Close() error
- func (resultSet *ResultSet) ColumnTypeDatabaseTypeName(index int) string
- func (resultSet *ResultSet) ColumnTypeLength(index int) (int64, bool)
- func (resultSet *ResultSet) ColumnTypeNullable(index int) (nullable, ok bool)
- func (resultSet *ResultSet) ColumnTypePrecisionScale(index int) (int64, int64, bool)
- func (resultSet *ResultSet) ColumnTypeScanType(index int) reflect.Type
- func (resultSet *ResultSet) Columns() []string
- func (resultSet *ResultSet) Err() error
- func (resultSet *ResultSet) Next(dest []driver.Value) error
- func (resultSet *ResultSet) Next_() bool
- func (resultSet *ResultSet) Scan(dest ...interface{}) error
- func (resultSet *ResultSet) Trace(t trace.Tracer)
- type Row
- type Stmt
- func (stmt *Stmt) CanAutoClose() bool
- func (stmt *Stmt) CheckNamedValue(nv *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, args []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_(namedArgs []driver.NamedValue) (*DataSet, error)
- type StmtInterface
- type StmtType
- type TCPNego
- type TimeStampTZ
- type Transaction
Constants ¶
const ( TNS_TYPE_REP_NATIVE uint16 = 0 TNS_TYPE_REP_UNIVERSAL uint16 = 1 TNS_TYPE_REP_ORACLE uint16 = 10 TNS_DATA_TYPE_VBI uint16 = 15 TNS_DATA_TYPE_UB2 uint16 = 25 TNS_DATA_TYPE_UB4 uint16 = 26 TNS_DATA_TYPE_SB1 uint16 = 27 TNS_DATA_TYPE_SB2 uint16 = 28 TNS_DATA_TYPE_SB4 uint16 = 29 TNS_DATA_TYPE_SWORD uint16 = 30 TNS_DATA_TYPE_UWORD uint16 = 31 TNS_DATA_TYPE_PTRB uint16 = 32 TNS_DATA_TYPE_PTRW uint16 = 33 TNS_DATA_TYPE_TIDDEF uint16 = 10 TNS_DATA_TYPE_CURSOR uint16 = 102 TNS_DATA_TYPE_RDD uint16 = 104 TNS_DATA_TYPE_CLOB uint16 = 112 TNS_DATA_TYPE_BLOB uint16 = 113 TNS_DATA_TYPE_BFILE uint16 = 114 TNS_DATA_TYPE_CFILE uint16 = 115 TNS_DATA_TYPE_RSET uint16 = 116 //TNS_DATA_TYPE_VECTOR int16 = 127 TNS_DATA_TYPE_DCLOB uint16 = 195 TNS_DATA_TYPE_DBLOB uint16 = 196 TNS_DATA_TYPE_DBFILE uint16 = 197 TNS_DATA_TYPE_UROWID uint16 = 208 TNS_DATA_TYPE_EXT_NAMED uint16 = 108 TNS_DATA_TYPE_INT_NAMED uint16 = 109 TNS_DATA_TYPE_EXT_REF uint16 = 110 TNS_DATA_TYPE_INT_REF uint16 = 111 )
Variables ¶
This section is empty.
Functions ¶
func AddParameterCoder ¶
func AddParameterCoder(db *sql.DB, go_type reflect.Type, oracle_type uint16, coder parameter_coder.OracleParameterCoder) error
func BuildUrl ¶
func BuildUrl(server string, port int, service, user, password string, options map[string]string) string
BuildUrl create databaseURL from server, port, service, user, password, urlOptions this function help build a will formed databaseURL and accept any character as it convert special charters to corresponding values in URL
func DelSessionParam ¶
func NewConnector ¶
func ParseConfig ¶
func ParseConfig(dsn string) (*configurations.ConnectionConfig, error)
func RegisterConnConfig ¶
func RegisterConnConfig(config *configurations.ConnectionConfig)
func RegisterType ¶
func RegisterTypeWithOwner ¶
func SetNTSAuth ¶
func SetNTSAuth(newNTSManager advanced_nego.NTSAuthInterface)
func SetStringConverter ¶
func SetStringConverter(db GetDriverInterface, charset, nCharset converters.IStringConverter)
SetStringConverter this function is used to set a custom string converter interface that will be used to encode and decode strings and bytearrays passing nil will use driver string converter for supported langs
Types ¶
type AuthObject ¶
type AuthObject struct {
EServerSessKey string
EClientSessKey string
EPassword string
ESpeedyKey string
ServerSessKey []byte
ClientSessKey []byte
KeyHash []byte
Salt string
//customHash bool
VerifierType int
// contains filtered or unexported fields
}
E infront of the variable means encrypted
func (*AuthObject) Write ¶
func (obj *AuthObject) Write() error
write authentication data to network
type Connection ¶
type Connection struct {
State ConnectionState
LogonMode LogonMode
SessionProperties map[string]string
NLSData NLSData
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(databaseUrl string, config *configurations.ConnectionConfig) (*Connection, error)
NewConnection create a new connection from databaseURL string or configuration
func (*Connection) CheckNamedValue ¶
func (conn *Connection) CheckNamedValue(nv *driver.NamedValue) error
func (*Connection) Close ¶
func (conn *Connection) Close() (err error)
Close the connection by disconnect network session
func (*Connection) ExecContext ¶
func (conn *Connection) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
func (*Connection) GetDBServerTimeZone ¶ added in v3.0.1
func (conn *Connection) GetDBServerTimeZone() *time.Location
func (*Connection) GetDBTimeZone ¶ added in v3.0.1
func (conn *Connection) GetDBTimeZone() *time.Location
func (*Connection) GetDefaultStringCoder ¶
func (conn *Connection) GetDefaultStringCoder() (converters.IStringConverter, error)
func (*Connection) GetMaxRawLength ¶
func (conn *Connection) GetMaxRawLength() int64
func (*Connection) GetMaxStringLength ¶
func (conn *Connection) GetMaxStringLength() int64
func (*Connection) GetNLS ¶
func (conn *Connection) GetNLS() (*NLSData, error)
GetNLS return NLS properties of the connection. this function is left from v1. but v2 is using another method
func (*Connection) GetParameterCoder ¶
func (conn *Connection) GetParameterCoder(input interface{}) (parameter_coder.OracleParameterCoder, error)
func (*Connection) GetServerNStringCoder ¶
func (conn *Connection) GetServerNStringCoder() converters.IStringConverter
func (*Connection) GetServerStringCoder ¶
func (conn *Connection) GetServerStringCoder() converters.IStringConverter
func (*Connection) GetSession ¶
func (conn *Connection) GetSession() network.SessionReadWriter
func (*Connection) GetStringCoder ¶
func (conn *Connection) GetStringCoder(charsetID, charsetForm int) (converters.IStringConverter, error)
func (*Connection) IsValid ¶
func (conn *Connection) IsValid() bool
IsValid validates if a connection has to be discarded. Part of a keepConnOnRollback condition to decide if to keep a transaction after rollback.
func (*Connection) Logoff ¶
func (conn *Connection) Logoff() error
func (*Connection) NewLobStreamer ¶
func (conn *Connection) NewLobStreamer() types.LobStreamer
func (*Connection) Open ¶
func (conn *Connection) Open() error
Open the connection = bring it online
func (*Connection) OpenWithContext ¶
func (conn *Connection) OpenWithContext(ctx context.Context) error
OpenWithContext open the connection with timeout context
func (*Connection) Ping ¶
func (conn *Connection) Ping(ctx context.Context) error
Ping test if connection is online
func (*Connection) Prepare ¶
func (conn *Connection) Prepare(query string) (driver.Stmt, error)
Prepare take a query string and create a stmt object
func (*Connection) PrepareContext ¶
func (*Connection) ProcessTCCResponse ¶
func (conn *Connection) ProcessTCCResponse(msgCode uint8) error
func (*Connection) QueryContext ¶
func (conn *Connection) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
func (*Connection) QueryRowContext ¶
func (conn *Connection) QueryRowContext(ctx context.Context, query string, args []driver.NamedValue) *DataSet
func (*Connection) ResetSession ¶
func (conn *Connection) ResetSession(_ context.Context) error
ResetSession decides responsible for resetting a connection. Part of a keepConnOnRollback condition to decide if to keep a transaction after rollback.
func (*Connection) SendTimeAsUTC ¶ added in v3.0.1
func (conn *Connection) SendTimeAsUTC() bool
func (*Connection) TTCVersion ¶
func (conn *Connection) TTCVersion() uint8
type ConnectionCookie ¶
type ConnectionProperties ¶
type ConnectionProperties struct {
// contains filtered or unexported fields
}
type ConnectionState ¶
type ConnectionState int
const ( Closed ConnectionState = 0 Opened ConnectionState = 1 )
type DBVersion ¶
type DataSet ¶
type DataSet struct {
// contains filtered or unexported fields
}
func (*DataSet) ColumnTypeDatabaseTypeName ¶
ColumnTypeDatabaseTypeName return Col DataType name
func (*DataSet) ColumnTypeLength ¶
ColumnTypeLength return length of column type
func (*DataSet) ColumnTypeNullable ¶
ColumnTypeNullable return if column allow null or not
func (*DataSet) ColumnTypePrecisionScale ¶
ColumnTypePrecisionScale return the precision and scale for numeric types
func (*DataSet) ColumnTypeScanType ¶
func (*DataSet) HasNextResultSet ¶
func (*DataSet) NextResultSet ¶
type DataTypeNego ¶
type GetDriverInterface ¶
type LobStream ¶
type LobStream struct {
// contains filtered or unexported fields
}
func (*LobStream) CreateTemporaryLocator ¶
func (*LobStream) DatabaseVersionNumber ¶
func (*LobStream) EndContext ¶
func (lob *LobStream) EndContext(done chan struct{})
func (*LobStream) FreeTemporaryLocator ¶
func (*LobStream) GetLobReadMode ¶
func (lob *LobStream) GetLobReadMode() configurations.LobReadMode
func (*LobStream) GetLobStreamMode ¶
func (lob *LobStream) GetLobStreamMode() configurations.LobFetch
func (*LobStream) GetLocator ¶
func (*LobStream) GetStringCoder ¶
func (lob *LobStream) GetStringCoder() converters.StringCoder
func (*LobStream) SetLocator ¶
func (*LobStream) StartContext ¶
isTemporary: return true if the lob is temporary
func (lob *LobStream) isTemporary() bool {
if len(lob.sourceLocator) > 7 {
if lob.sourceLocator[7]&1 == 1 || lob.sourceLocator[4]&0x40 == 0x40 || lob.isValueBasedLocator() {
return true
}
}
return false
}
func (lob *LobStream) isQuasiLocator() bool {
return lob.sourceLocator.IsQuasi()
}
func (lob *LobStream) isValueBasedLocator() bool {
return lob.sourceLocator[4]&0x20 > 0
}
type LogonMode ¶
type LogonMode int
const ( NoNewPass LogonMode = 0x1 SysDba LogonMode = 0x20 SysOper LogonMode = 0x40 SysAsm LogonMode = 0x00400000 SysBackup LogonMode = 0x01000000 SysDg LogonMode = 0x02000000 SysKm LogonMode = 0x04000000 SysRac LogonMode = 0x08000000 UserAndPass LogonMode = 0x100 WithNewPass LogonMode = 0x2 PROXY LogonMode = 0x400 )
type NLSData ¶
type NLSData struct {
Calender string `db:"p_nls_calendar,,40,out"`
Comp string `db:"p_nls_comp,,40,out"`
Language string
LengthSemantics string `db:"p_nls_length_semantics,,40,out"`
NCharConvExcep string `db:"p_nls_nchar_conv_excep,,40,out"`
NCharConvImp string
DateLang string `db:"p_nls_date_lang,,40,out"`
Sort string `db:"p_nls_sort,,40,out"`
Currency string `db:"p_nls_currency,,40,out"`
DateFormat string `db:"p_nls_date_format,,40,out"`
TimeFormat string
IsoCurrency string `db:"p_nls_iso_currency,,40,out"`
NumericChars string `db:"p_nls_numeric_chars,,40,out"`
DualCurrency string `db:"p_nls_dual_currency,,40,out"`
UnionCurrency string
Timestamp string `db:"p_nls_timestamp,,48,out"`
TimestampTZ string `db:"p_nls_timestamp_tz,,56,out"`
TTimezoneFormat string
NTimezoneFormat string
Territory string
Charset string
}
func (*NLSData) SaveNLSValue ¶
SaveNLSValue a helper function that convert between nls key and code
type NullTimeStampTZ ¶
type NullTimeStampTZ struct {
TimeStampTZ TimeStampTZ
Valid bool
}
func (NullTimeStampTZ) MarshalJSON ¶
func (val NullTimeStampTZ) MarshalJSON() ([]byte, error)
func (*NullTimeStampTZ) Scan ¶
func (val *NullTimeStampTZ) Scan(value interface{}) error
func (*NullTimeStampTZ) UnmarshalJSON ¶
func (val *NullTimeStampTZ) UnmarshalJSON(data []byte) error
type ObjectParameter ¶
type ObjectParameter struct {
parameter_coder.BasicParameter
// contains filtered or unexported fields
}
func (*ObjectParameter) Copy ¶
func (param *ObjectParameter) Copy() parameter_coder.OracleParameterCoder
func (*ObjectParameter) Decode ¶
func (param *ObjectParameter) Decode(conn parameter_coder.IConnection) (interface{}, error)
func (*ObjectParameter) Encode ¶
func (param *ObjectParameter) Encode(input interface{}, conn parameter_coder.IConnection) (err error)
func (param *ObjectParameter) encodeObject(input interface{}, conn parameter_coder.IConnection) (err error) {
return
}
func (param *ObjectParameter) encodeArray(input interface{}, conn parameter_coder.IConnection) (err error) {
}
func (*ObjectParameter) Init ¶
func (param *ObjectParameter) Init()
func (*ObjectParameter) Read ¶
func (param *ObjectParameter) Read(session network.SessionReader) error
func (*ObjectParameter) Write ¶
func (param *ObjectParameter) Write(session network.SessionWriter) error
type OracleConnector ¶
type OracleConnector struct {
// contains filtered or unexported fields
}
func (*OracleConnector) Dialer ¶
func (connector *OracleConnector) Dialer(dialer configurations.DialerContext)
func (*OracleConnector) Driver ¶
func (connector *OracleConnector) Driver() driver.Driver
func (*OracleConnector) WithKerberosAuth ¶
func (connector *OracleConnector) WithKerberosAuth(auth configurations.KerberosAuthInterface)
WithKerberosAuth sets the Kerberos authenticator to be used by this connector. It does not enable the Kerberos; set AUTH TYPE to KERBEROS to do so.
func (*OracleConnector) WithTLSConfig ¶
func (connector *OracleConnector) WithTLSConfig(config *tls.Config)
func (*OracleConnector) WithWallet ¶
func (connector *OracleConnector) WithWallet(reader io.Reader) error
type OracleDriver ¶
type OracleDriver struct {
UserId string
// contains filtered or unexported fields
}
func GetDefaultDriver ¶
func GetDefaultDriver() *OracleDriver
func NewDriver ¶
func NewDriver() *OracleDriver
func (*OracleDriver) Open ¶
func (driver *OracleDriver) Open(name string) (driver.Conn, error)
Open return a new open connection
func (*OracleDriver) OpenConnector ¶
func (driver *OracleDriver) OpenConnector(connString string) (driver.Connector, error)
type ParameterDirection ¶
type ParameterDirection int
const ( Input ParameterDirection = 1 Output ParameterDirection = 2 InOut ParameterDirection = 3 )
type ParameterInfo ¶
type ParameterInfo struct {
Name string
SchemaName string
DomainSchema string
DomainName string
Direction ParameterDirection
IsNull bool
AllowNull bool
IsJson bool
ColAlias string
IsXmlType bool
Precision uint8
Scale uint8
Value driver.Value
Annotations map[string]string
parameter_coder.BasicParameter
// contains filtered or unexported fields
}
type QueryResult ¶
type QueryResult struct {
// contains filtered or unexported fields
}
func (*QueryResult) LastInsertId ¶
func (rs *QueryResult) LastInsertId() (int64, error)
func (*QueryResult) RowsAffected ¶
func (rs *QueryResult) RowsAffected() (int64, error)
type RefCursor ¶
type RefCursor struct {
MaxRowSize int
// contains filtered or unexported fields
}
func (*RefCursor) CanAutoClose ¶
func (stmt *RefCursor) CanAutoClose() bool
func (RefCursor) SetDataType ¶
func (cursor RefCursor) SetDataType(conn *Connection, par *ParameterInfo) error
type ResultSet ¶
type ResultSet struct {
// contains filtered or unexported fields
}
func (*ResultSet) ColumnTypeDatabaseTypeName ¶
ColumnTypeDatabaseTypeName return Col DataType name
func (*ResultSet) ColumnTypeLength ¶
ColumnTypeLength return length of column type
func (*ResultSet) ColumnTypeNullable ¶
ColumnTypeNullable return if column allow null or not
func (*ResultSet) ColumnTypePrecisionScale ¶
ColumnTypePrecisionScale return the precision and scale for numeric types
func (*ResultSet) ColumnTypeScanType ¶
func (*ResultSet) Next_ ¶
Next_ act like Next in sql package return false if no other rows in dataset
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func NewStmt ¶
func NewStmt(text string, conn *Connection) *Stmt
NewStmt create new stmt and set its connection properties
func (*Stmt) CanAutoClose ¶
func (stmt *Stmt) CanAutoClose() bool
func (*Stmt) CheckNamedValue ¶
func (stmt *Stmt) CheckNamedValue(nv *driver.NamedValue) error
func (*Stmt) Exec ¶
Exec execute stmt (INSERT, UPDATE, DELETE, DML, PLSQL) and return driver.Result object
func (*Stmt) ExecContext ¶
func (*Stmt) NewParam ¶
func (stmt *Stmt) NewParam(name string, val driver.Value, size int, direction ParameterDirection) (*ParameterInfo, error)
func (*Stmt) Query ¶
Query execute a query command and return dataset object in form of driver.Rows interface
args is an array of values that corresponding to parameters in sql
func (*Stmt) QueryContext ¶
type StmtInterface ¶
type TimeStampTZ ¶
func (TimeStampTZ) MarshalJSON ¶
func (val TimeStampTZ) MarshalJSON() ([]byte, error)
func (*TimeStampTZ) Scan ¶
func (val *TimeStampTZ) Scan(value interface{}) error
func (*TimeStampTZ) UnmarshalJSON ¶
func (val *TimeStampTZ) UnmarshalJSON(data []byte) error
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) Commit ¶
func (tx *Transaction) Commit() error
func (*Transaction) Rollback ¶
func (tx *Transaction) Rollback() error
Source Files
¶
- auth_object.go
- bulk_copy.go
- command.go
- connection.go
- connection_cookie.go
- connection_string.go
- custom_types.go
- data_set.go
- data_type_nego.go
- db_version.go
- driver.go
- lob.go
- number.go
- object_parameter.go
- oracletype_string.go
- parameter.go
- parameter_encode.go
- ref_cursor.go
- result_set.go
- simple_object.go
- tcp_protocol_nego.go
- timestamp.go
- timestampTZ.go
- transaction.go
- udt.go
- utils.go
- value_getter.go
- value_setter.go
Directories
¶
| Path | Synopsis |
|---|---|
|
ntlmssp
Package ntlmssp provides NTLM/Negotiate authentication over HTTP
|
Package ntlmssp provides NTLM/Negotiate authentication over HTTP |
|
generatefloat
command
|
|
|
security/md4
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
|
Package md4 implements the MD4 hash algorithm as defined in RFC 1320. |