Versions in this module Expand all Collapse all v1 v1.0.0 Mar 4, 2024 Changes in this version + var Driver = &DriverStruct + var ErrNoRowid = errors.New("result has no rowid") + var ErrOCIInvalidHandle = errors.New("OCI_INVALID_HANDLE") + var ErrOCINeedData = errors.New("OCI_NEED_DATA") + var ErrOCINoData = errors.New("OCI_NO_DATA") + var ErrOCIReservedForIntUse = errors.New("OCI_RESERVED_FOR_INT_USE") + var ErrOCIStillExecuting = errors.New("OCI_STILL_EXECUTING") + var ErrOCISuccessWithInfo = errors.New("OCI_SUCCESS_WITH_INFO") + func GetLastInsertId(id int64) string + func NewConnector(hosts ...string) driver.Connector + func QueryEscape(s string) string + func QueryUnescape(s string) (string, error) + type Conn struct + func (conn *Conn) Begin() (driver.Tx, error) + func (conn *Conn) BeginTx(ctx context.Context, txOptions driver.TxOptions) (driver.Tx, error) + func (conn *Conn) Close() error + func (conn *Conn) Ping(ctx context.Context) error + func (conn *Conn) Prepare(query string) (driver.Stmt, error) + func (conn *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + type Connector struct + Logger *log.Logger + func (connector *Connector) Connect(ctx context.Context) (driver.Conn, error) + func (connector *Connector) Driver() driver.Driver + type DSN struct + Connect string + Password string + Username string + func ParseDSN(dsnString string) (dsn *DSN, err error) + type DriverStruct struct + Logger *log.Logger + func (drv *DriverStruct) Open(dsnString string) (driver.Conn, error) + type EscapeError string + func (e EscapeError) Error() string + type Result struct + func (result *Result) LastInsertId() (int64, error) + func (result *Result) RowsAffected() (int64, error) + type Rows struct + func (rows *Rows) Close() error + func (rows *Rows) ColumnTypeDatabaseTypeName(i int) string + func (rows *Rows) ColumnTypeLength(i int) (int64, bool) + func (rows *Rows) ColumnTypeScanType(i int) reflect.Type + func (rows *Rows) Columns() []string + func (rows *Rows) Next(dest []driver.Value) error + type Stmt struct + func (stmt *Stmt) CheckNamedValue(namedValue *driver.NamedValue) error + func (stmt *Stmt) Close() error + func (stmt *Stmt) Exec(values []driver.Value) (driver.Result, error) + func (stmt *Stmt) ExecContext(ctx context.Context, namedValues []driver.NamedValue) (driver.Result, error) + func (stmt *Stmt) NumInput() int + func (stmt *Stmt) Query(values []driver.Value) (driver.Rows, error) + func (stmt *Stmt) QueryContext(ctx context.Context, namedValues []driver.NamedValue) (driver.Rows, error) + type Tx struct + func (tx *Tx) Commit() error + func (tx *Tx) Rollback() error + type Values map[string][]string + func ParseQuery(query string) (m Values, err error) + func (v Values) Add(key, value string) + func (v Values) Del(key string) + func (v Values) Encode() string + func (v Values) Get(key string) string + func (v Values) Set(key, value string)