go_ora

package module
v2.8.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT Imports: 36 Imported by: 336

Documentation

Index

Constants

View Source
const (
	TNS_TYPE_REP_NATIVE    int16 = 0
	TNS_TYPE_REP_UNIVERSAL int16 = 1
	TNS_TYPE_REP_ORACLE    int16 = 10
	TNS_DATA_TYPE_UB2      int16 = 25
	TNS_DATA_TYPE_UB4      int16 = 26
	TNS_DATA_TYPE_SB1      int16 = 27
	TNS_DATA_TYPE_SB2      int16 = 28
	TNS_DATA_TYPE_SB4      int16 = 29
	TNS_DATA_TYPE_SWORD    int16 = 30
	TNS_DATA_TYPE_UWORD    int16 = 31
	TNS_DATA_TYPE_PTRB     int16 = 32
	TNS_DATA_TYPE_PTRW     int16 = 33
	TNS_DATA_TYPE_TIDDEF   int16 = 10
)

Variables

This section is empty.

Functions

func AddSessionParam added in v2.7.20

func AddSessionParam(db *sql.DB, key, value string) error

func BuildJDBC added in v2.4.7

func BuildJDBC(user, password, connStr string, options map[string]string) string

BuildJDBC create url from user, password and JDBC description string

func BuildUrl added in v2.2.5

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 added in v2.8.4

func DelSessionParam(db *sql.DB, key string)

func NewConnector added in v2.7.18

func NewConnector(connString string) driver.Connector

func ParseConfig added in v2.8.12

func ParseConfig(dsn string) (*configurations.ConnectionConfig, error)

func RegisterConnConfig added in v2.8.12

func RegisterConnConfig(config *configurations.ConnectionConfig)

func RegisterType added in v2.7.7

func RegisterType(conn *sql.DB, typeName, arrayTypeName string, typeObj interface{}) error

func RegisterTypeWithOwner added in v2.7.7

func RegisterTypeWithOwner(conn *sql.DB, owner, typeName, arrayTypeName string, typeObj interface{}) error

func SetNTSAuth added in v2.3.3

func SetNTSAuth(newNTSManager advanced_nego.NTSAuthInterface)

func SetStringConverter added in v2.7.18

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

func TZBytes

func TZBytes() []byte

func WrapRefCursor added in v2.7.17

func WrapRefCursor(ctx context.Context, q Querier, cursor *RefCursor) (*sql.Rows, error)

Types

type AuthObject

type AuthObject struct {
	EServerSessKey string
	EClientSessKey string
	EPassword      string
	ESpeedyKey     string
	ServerSessKey  []byte
	ClientSessKey  []byte
	KeyHash        []byte
	Salt           string

	VerifierType int
	// contains filtered or unexported fields
}

E infront of the variable means encrypted

func (*AuthObject) Write

func (obj *AuthObject) Write(connOption *configurations.ConnectionConfig, mode LogonMode, session *network.Session) error

write authentication data to network

type BFile added in v2.4.5

type BFile struct {
	Valid bool
	// contains filtered or unexported fields
}

func CreateBFile added in v2.7.23

func CreateBFile(db *sql.DB, dirName, fileName string) (*BFile, error)

func CreateBFile2 added in v2.7.23

func CreateBFile2(connection *Connection, dirName, fileName string) (*BFile, error)

func CreateNullBFile added in v2.7.23

func CreateNullBFile() *BFile

func (*BFile) Close added in v2.4.5

func (file *BFile) Close() error

func (*BFile) Exists added in v2.4.5

func (file *BFile) Exists() (bool, error)

func (*BFile) GetDirName added in v2.7.23

func (file *BFile) GetDirName() string

func (*BFile) GetFileName added in v2.7.23

func (file *BFile) GetFileName() string

func (*BFile) GetLength added in v2.4.5

func (file *BFile) GetLength() (int64, error)

func (*BFile) IsOpen added in v2.4.5

func (file *BFile) IsOpen() bool

func (*BFile) Open added in v2.4.5

func (file *BFile) Open() error

func (*BFile) Read added in v2.4.5

func (file *BFile) Read() ([]byte, error)

func (*BFile) ReadBytesFromPos added in v2.4.5

func (file *BFile) ReadBytesFromPos(pos, count int64) ([]byte, error)

func (*BFile) ReadFromPos added in v2.4.5

func (file *BFile) ReadFromPos(pos int64) ([]byte, error)

func (*BFile) Scan added in v2.4.21

func (file *BFile) Scan(value interface{}) error

type Blob added in v2.2.21

type Blob struct {
	Data []byte
	// deprecated
	Valid bool
	// contains filtered or unexported fields
}

func (Blob) MarshalJSON added in v2.5.22

func (val Blob) MarshalJSON() ([]byte, error)

func (*Blob) Scan added in v2.6.1

func (val *Blob) Scan(value interface{}) error

func (*Blob) UnmarshalJSON added in v2.5.22

func (val *Blob) UnmarshalJSON(data []byte) error

type BulkCopy added in v2.5.31

type BulkCopy struct {
	TableName     string
	SchemaName    string
	PartitionName string
	ColumnNames   []string
	// contains filtered or unexported fields
}

func NewBulkCopy added in v2.5.31

func NewBulkCopy(conn *Connection, tableName string) *BulkCopy

func (*BulkCopy) Abort added in v2.5.31

func (bulk *BulkCopy) Abort() error

func (*BulkCopy) AddRow added in v2.5.31

func (bulk *BulkCopy) AddRow(values ...interface{}) error

func (*BulkCopy) Commit added in v2.5.31

func (bulk *BulkCopy) Commit() error

func (*BulkCopy) EndStream added in v2.5.31

func (bulk *BulkCopy) EndStream() error

func (*BulkCopy) StartStream added in v2.5.31

func (bulk *BulkCopy) StartStream() error

type Clob added in v2.2.21

type Clob struct {
	String string
	Valid  bool
	// contains filtered or unexported fields
}

func (Clob) MarshalJSON added in v2.5.22

func (val Clob) MarshalJSON() ([]byte, error)

func (*Clob) Scan added in v2.6.1

func (val *Clob) Scan(value interface{}) error

func (*Clob) UnmarshalJSON added in v2.5.22

func (val *Clob) UnmarshalJSON(data []byte) error

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) Begin

func (conn *Connection) Begin() (driver.Tx, error)

Begin a transaction

func (*Connection) BeginTx added in v2.4.2

func (conn *Connection) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)

func (*Connection) BulkInsert added in v2.4.0

func (conn *Connection) BulkInsert(sqlText string, rowNum int, columns ...[]driver.Value) (*QueryResult, error)

BulkInsert mass insert column values into a table all columns should pass as an array of values

func (*Connection) CheckNamedValue added in v2.4.2

func (conn *Connection) CheckNamedValue(_ *driver.NamedValue) error

func (*Connection) Close

func (conn *Connection) Close() (err error)

Close the connection by disconnect network session

func (*Connection) Exec added in v2.2.23

func (conn *Connection) Exec(text string, args ...driver.Value) (driver.Result, error)

func (*Connection) ExecContext added in v2.4.1

func (conn *Connection) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)

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) Logoff added in v2.8.8

func (conn *Connection) Logoff() error

func (*Connection) Open

func (conn *Connection) Open() error

Open the connection = bring it online

func (*Connection) OpenWithContext added in v2.4.2

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 added in v2.4.1

func (conn *Connection) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)

func (*Connection) QueryContext added in v2.4.1

func (conn *Connection) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)

func (*Connection) QueryRowContext added in v2.7.12

func (conn *Connection) QueryRowContext(ctx context.Context, query string, args []driver.NamedValue) *DataSet

func (*Connection) ResetSession added in v2.7.4

func (conn *Connection) ResetSession(_ context.Context) error

func (*Connection) StructsInsert added in v2.5.32

func (conn *Connection) StructsInsert(sqlText string, values []interface{}) (*QueryResult, error)

StructsInsert support interface{} array

type ConnectionState

type ConnectionState int
const (
	Closed ConnectionState = 0
	Opened ConnectionState = 1
)

type DBVersion

type DBVersion struct {
	Info            string
	Text            string
	Number          uint16
	MajorVersion    int
	MinorVersion    int
	PatchsetVersion int
}

func GetDBVersion

func GetDBVersion(session *network.Session) (*DBVersion, error)

GetDBVersion write a request to get database version the read database version from network session

type DataSet

type DataSet struct {
	// contains filtered or unexported fields
}

func (*DataSet) Close

func (dataSet *DataSet) Close() error

func (*DataSet) ColumnTypeDatabaseTypeName

func (dataSet *DataSet) ColumnTypeDatabaseTypeName(index int) string

ColumnTypeDatabaseTypeName return Col DataType name

func (*DataSet) ColumnTypeLength

func (dataSet *DataSet) ColumnTypeLength(index int) (int64, bool)

ColumnTypeLength return length of column type

func (*DataSet) ColumnTypeNullable

func (dataSet *DataSet) ColumnTypeNullable(index int) (nullable, ok bool)

ColumnTypeNullable return if column allow null or not

func (*DataSet) ColumnTypePrecisionScale added in v2.6.5

func (dataSet *DataSet) ColumnTypePrecisionScale(index int) (int64, int64, bool)

ColumnTypePrecisionScale return the precision and scale for numeric types

func (*DataSet) ColumnTypeScanType added in v2.6.13

func (dataSet *DataSet) ColumnTypeScanType(index int) reflect.Type

func (*DataSet) Columns

func (dataSet *DataSet) Columns() []string

Columns return a string array that represent columns names

func (*DataSet) Err added in v2.2.12

func (dataSet *DataSet) Err() error

func (*DataSet) Next

func (dataSet *DataSet) Next(dest []driver.Value) error

Next implement method need for sql.Rows interface

func (*DataSet) Next_ added in v2.2.12

func (dataSet *DataSet) Next_() bool

Next_ act like Next in sql package return false if no other rows in dataset

func (*DataSet) Scan added in v2.2.12

func (dataSet *DataSet) Scan(dest ...interface{}) error

Scan act like scan in sql package return row values to dest variable pointers

func (*DataSet) Trace

func (dataSet *DataSet) Trace(t trace.Tracer)

type DataTypeNego

type DataTypeNego struct {
	MessageCode        uint8
	Server             *TCPNego
	TypeAndRep         []int16
	RuntimeTypeAndRep  []int16
	DataTypeRepFor1100 int16
	DataTypeRepFor1200 int16
	CompileTimeCaps    []byte
	RuntimeCap         []byte
	// contains filtered or unexported fields
}

type GetDriverInterface added in v2.7.18

type GetDriverInterface interface {
	Driver() driver.Driver
}

type Lob

type Lob struct {
	// contains filtered or unexported fields
}

func (*Lob) GetLobId added in v2.4.6

func (lob *Lob) GetLobId(locator []byte) []byte

type LogonMode

type LogonMode int
const (
	NoNewPass   LogonMode = 0x1
	SysDba      LogonMode = 0x20
	SysOper     LogonMode = 0x40
	UserAndPass LogonMode = 0x100
)

type NClob added in v2.4.5

type NClob Clob

func (NClob) MarshalJSON added in v2.5.22

func (val NClob) MarshalJSON() ([]byte, error)

func (*NClob) Scan added in v2.6.1

func (val *NClob) Scan(value interface{}) error

func (*NClob) UnmarshalJSON added in v2.5.22

func (val *NClob) UnmarshalJSON(data []byte) error

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

func (nls *NLSData) SaveNLSValue(key, value string, code int)

SaveNLSValue a helper function that convert between nls key and code

type NVarChar added in v2.1.20

type NVarChar string

func (NVarChar) MarshalJSON added in v2.5.22

func (val NVarChar) MarshalJSON() ([]byte, error)

func (*NVarChar) Scan added in v2.4.5

func (val *NVarChar) Scan(value interface{}) error

func (*NVarChar) UnmarshalJSON added in v2.5.22

func (val *NVarChar) UnmarshalJSON(data []byte) error

func (*NVarChar) Value added in v2.1.20

func (val *NVarChar) Value() (driver.Value, error)

type NullNVarChar added in v2.3.0

type NullNVarChar struct {
	NVarChar NVarChar
	Valid    bool
}

func (NullNVarChar) MarshalJSON added in v2.5.22

func (val NullNVarChar) MarshalJSON() ([]byte, error)

func (*NullNVarChar) Scan added in v2.4.5

func (val *NullNVarChar) Scan(value interface{}) error

func (*NullNVarChar) UnmarshalJSON added in v2.5.22

func (val *NullNVarChar) UnmarshalJSON(data []byte) error

func (NullNVarChar) Value added in v2.4.5

func (val NullNVarChar) Value() (driver.Value, error)

type NullTimeStamp added in v2.3.0

type NullTimeStamp struct {
	TimeStamp TimeStamp
	Valid     bool
}

func (NullTimeStamp) MarshalJSON added in v2.5.22

func (val NullTimeStamp) MarshalJSON() ([]byte, error)

func (*NullTimeStamp) Scan added in v2.4.5

func (val *NullTimeStamp) Scan(value interface{}) error

func (*NullTimeStamp) UnmarshalJSON added in v2.5.22

func (val *NullTimeStamp) UnmarshalJSON(data []byte) error

func (NullTimeStamp) Value added in v2.4.5

func (val NullTimeStamp) Value() (driver.Value, error)

type NullTimeStampTZ added in v2.6.4

type NullTimeStampTZ struct {
	TimeStampTZ TimeStampTZ
	Valid       bool
}

func (NullTimeStampTZ) MarshalJSON added in v2.6.4

func (val NullTimeStampTZ) MarshalJSON() ([]byte, error)

func (*NullTimeStampTZ) Scan added in v2.6.4

func (val *NullTimeStampTZ) Scan(value interface{}) error

func (*NullTimeStampTZ) UnmarshalJSON added in v2.6.4

func (val *NullTimeStampTZ) UnmarshalJSON(data []byte) error

func (NullTimeStampTZ) Value added in v2.6.4

func (val NullTimeStampTZ) Value() (driver.Value, error)

type Number

type Number struct {
	// contains filtered or unexported fields
}

func NewNumber added in v2.8.10

func NewNumber(n interface{}) (*Number, error)

func NewNumberFromFloat added in v2.8.10

func NewNumberFromFloat(val float64) (*Number, error)

func NewNumberFromInt64 added in v2.8.10

func NewNumberFromInt64(val int64) (*Number, error)

func NewNumberFromString added in v2.8.10

func NewNumberFromString(val string) (*Number, error)

func NewNumberFromUint64 added in v2.8.10

func NewNumberFromUint64(val uint64) (*Number, error)

func (*Number) Float64 added in v2.8.10

func (num *Number) Float64() (float64, error)

func (*Number) Int64 added in v2.8.10

func (num *Number) Int64() (int64, error)

func (*Number) String added in v2.8.10

func (num *Number) String() (string, error)

func (*Number) Uint64 added in v2.8.10

func (num *Number) Uint64() (uint64, error)

type Object added in v2.8.7

type Object struct {
	Owner string
	Name  string
	Value interface{}
	// contains filtered or unexported fields
}

func NewObject added in v2.8.7

func NewObject(owner, name string, value interface{}) *Object

NewObject call this function to wrap oracle object types or arrayso

type OracleConnector added in v2.3.2

type OracleConnector struct {
	// contains filtered or unexported fields
}

func (*OracleConnector) Connect added in v2.3.2

func (connector *OracleConnector) Connect(ctx context.Context) (driver.Conn, error)

func (*OracleConnector) Dialer added in v2.5.5

func (connector *OracleConnector) Dialer(dialer configurations.DialerContext)

func (*OracleConnector) Driver added in v2.3.2

func (connector *OracleConnector) Driver() driver.Driver

type OracleDriver added in v2.2.6

type OracleDriver struct {
	UserId string
	// contains filtered or unexported fields
}

func GetDefaultDriver added in v2.7.18

func GetDefaultDriver() *OracleDriver

func NewDriver added in v2.7.18

func NewDriver() *OracleDriver

func (*OracleDriver) Open added in v2.2.6

func (driver *OracleDriver) Open(name string) (driver.Conn, error)

Open return a new open connection

func (*OracleDriver) OpenConnector added in v2.4.2

func (driver *OracleDriver) OpenConnector(connString string) (driver.Connector, error)

type Out added in v2.2.23

type Out struct {
	Dest driver.Value
	Size int
	In   bool
}

type PLBool added in v2.7.12

type PLBool bool

type ParameterDirection

type ParameterDirection int
const (
	Input  ParameterDirection = 1
	Output ParameterDirection = 2
	InOut  ParameterDirection = 3
)

type ParameterInfo

type ParameterInfo struct {
	Name                 string
	TypeName             string
	SchemaName           string
	DomainSchema         string
	DomainName           string
	Direction            ParameterDirection
	IsNull               bool
	AllowNull            bool
	IsJson               bool
	ColAlias             string
	DataType             TNSType
	IsXmlType            bool
	Flag                 uint8
	Precision            uint8
	Scale                uint8
	MaxLen               int
	MaxCharLen           int
	MaxNoOfArrayElements int
	ContFlag             int
	ToID                 []byte
	Version              int
	CharsetID            int
	CharsetForm          int
	BValue               []byte
	Value                driver.Value

	OutputVarPtr interface{}

	Annotations map[string]string
	// contains filtered or unexported fields
}

type Querier added in v2.7.17

type Querier interface {
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
}

Querier is the QueryContext of sql.Conn.

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 added in v2.4.12

func (stmt *RefCursor) CanAutoClose() bool

func (*RefCursor) Close

func (stmt *RefCursor) Close() error

Close stmt cursor in the server

func (*RefCursor) Query

func (cursor *RefCursor) Query() (*DataSet, error)

type Row

type Row []driver.Value

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 added in v2.4.12

func (stmt *Stmt) CanAutoClose() bool

func (*Stmt) CheckNamedValue added in v2.1.20

func (stmt *Stmt) CheckNamedValue(_ *driver.NamedValue) error

func (*Stmt) Close

func (stmt *Stmt) Close() error

Close stmt cursor in the server

func (*Stmt) Exec

func (stmt *Stmt) Exec(args []driver.Value) (driver.Result, error)

Exec execute stmt (INSERT, UPDATE, DELETE, DML, PLSQL) and return driver.Result object

func (*Stmt) ExecContext added in v2.4.3

func (stmt *Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)

func (*Stmt) NewParam

func (stmt *Stmt) NewParam(name string, val driver.Value, size int, direction ParameterDirection) (*ParameterInfo, error)

func (*Stmt) NumInput

func (stmt *Stmt) NumInput() int

func (*Stmt) Query

func (stmt *Stmt) Query(args []driver.Value) (driver.Rows, error)

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 added in v2.4.3

func (stmt *Stmt) QueryContext(ctx context.Context, namedArgs []driver.NamedValue) (driver.Rows, error)

func (*Stmt) Query_ added in v2.2.12

func (stmt *Stmt) Query_(namedArgs []driver.NamedValue) (*DataSet, error)

Query_ execute a query command and return oracle dataset object

args is an array of values that corresponding to parameters in sql

type StmtInterface

type StmtInterface interface {
	Close() error
	CanAutoClose() bool
	// contains filtered or unexported methods
}

type StmtType

type StmtType int
const (
	SELECT StmtType = 1
	DML    StmtType = 2
	PLSQL  StmtType = 3
	OTHERS StmtType = 4
)

type TCPNego

type TCPNego struct {
	MessageCode           uint8
	ProtocolServerVersion uint8
	ProtocolServerString  string
	OracleVersion         int
	ServerCharset         int
	ServerFlags           uint8
	CharsetElem           int
	ServernCharset        int
	ServerCompileTimeCaps []byte
	ServerRuntimeCaps     []byte
}

type TNSType added in v2.7.7

type TNSType int
const (
	NCHAR    TNSType = 1
	NUMBER   TNSType = 2
	BInteger TNSType = 3
	//SB1              TNSType = 3
	//SB2              TNSType = 3
	//SB4              TNSType = 3
	FLOAT                     TNSType = 4
	NullStr                   TNSType = 5
	VarNum                    TNSType = 6
	PDN                       TNSType = 7
	LONG                      TNSType = 8
	VARCHAR                   TNSType = 9
	ROWID                     TNSType = 11
	DATE                      TNSType = 12
	VarRaw                    TNSType = 15
	BFloat                    TNSType = 21
	BDouble                   TNSType = 22
	RAW                       TNSType = 23
	LongRaw                   TNSType = 24
	TNS_JSON_TYPE_DATE        TNSType = 60
	TNS_JSON_TYPE_INTERVAL_YM TNSType = 61
	TNS_JSON_TYPE_INTERVAL_DS TNSType = 62
	UINT                      TNSType = 68
	LongVarChar               TNSType = 94
	LongVarRaw                TNSType = 95
	CHAR                      TNSType = 96
	CHARZ                     TNSType = 97
	IBFloat                   TNSType = 100
	IBDouble                  TNSType = 101
	REFCURSOR                 TNSType = 102
	OCIXMLType                TNSType = 108
	XMLType                   TNSType = 109
	OCIRef                    TNSType = 110
	OCIClobLocator            TNSType = 112
	OCIBlobLocator            TNSType = 113
	OCIFileLocator            TNSType = 114
	ResultSet                 TNSType = 116
	JSON                      TNSType = 119
	TNS_DATA_TYPE_OAC122      TNSType = 120
	OCIString                 TNSType = 155
	OCIDate                   TNSType = 156
	TimeStampDTY              TNSType = 180
	TimeStampTZ_DTY           TNSType = 181
	IntervalYM_DTY            TNSType = 182
	IntervalDS_DTY            TNSType = 183
	TimeTZ                    TNSType = 186
	TIMESTAMP                 TNSType = 187
	TIMESTAMPTZ               TNSType = 188
	IntervalYM                TNSType = 189
	IntervalDS                TNSType = 190
	UROWID                    TNSType = 208
	TimeStampLTZ_DTY          TNSType = 231
	TimeStampeLTZ             TNSType = 232
	Boolean                   TNSType = 0xFC
)

func (TNSType) String added in v2.7.7

func (i TNSType) String() string

type TimeStamp

type TimeStamp time.Time

func (TimeStamp) MarshalJSON added in v2.5.22

func (val TimeStamp) MarshalJSON() ([]byte, error)

func (*TimeStamp) Scan added in v2.4.5

func (val *TimeStamp) Scan(value interface{}) error

func (*TimeStamp) UnmarshalJSON added in v2.5.22

func (val *TimeStamp) UnmarshalJSON(data []byte) error

func (*TimeStamp) Value added in v2.4.5

func (val *TimeStamp) Value() (driver.Value, error)

type TimeStampTZ

type TimeStampTZ time.Time

func (TimeStampTZ) MarshalJSON added in v2.6.4

func (val TimeStampTZ) MarshalJSON() ([]byte, error)

func (*TimeStampTZ) Scan added in v2.6.4

func (val *TimeStampTZ) Scan(value interface{}) error

func (*TimeStampTZ) UnmarshalJSON added in v2.6.4

func (val *TimeStampTZ) UnmarshalJSON(data []byte) error

func (*TimeStampTZ) Value added in v2.6.4

func (val *TimeStampTZ) Value() (driver.Value, 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

type ValueEncoder added in v2.4.5

type ValueEncoder interface {
	EncodeValue(param *ParameterInfo, connection *Connection) error
}

Directories

Path Synopsis
ntlmssp
Package ntlmssp provides NTLM/Negotiate authentication over HTTP
Package ntlmssp provides NTLM/Negotiate authentication over HTTP
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL