Documentation
¶
Index ¶
- func CByte(b []byte) *C.char
- func GetLastInsertId(id int64) string
- func QueryEscape(s string) string
- func QueryUnescape(s string) (string, error)
- type DSN
- type EscapeError
- type OCI8Conn
- func (c *OCI8Conn) Begin() (driver.Tx, error)
- func (c *OCI8Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (c *OCI8Conn) CheckNamedValue(nv *driver.NamedValue) error
- func (c *OCI8Conn) Close() error
- func (c *OCI8Conn) Exec(query string, args []driver.Value) (driver.Result, error)
- func (c *OCI8Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
- func (c *OCI8Conn) Ping(ctx context.Context) error
- func (c *OCI8Conn) Prepare(query string) (driver.Stmt, error)
- func (c *OCI8Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (c *OCI8Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- type OCI8Driver
- type OCI8Result
- type OCI8Rows
- func (rc *OCI8Rows) Close() error
- func (rc *OCI8Rows) ColumnTypeDatabaseTypeName(i int) string
- func (rc *OCI8Rows) ColumnTypeLength(i int) (length int64, ok bool)
- func (rc *OCI8Rows) ColumnTypeNullable(i int) (nullable, ok bool)
- func (rc *OCI8Rows) ColumnTypeScanType(i int) reflect.Type
- func (rc *OCI8Rows) Columns() []string
- func (rc *OCI8Rows) Next(dest []driver.Value) error
- type OCI8Stmt
- func (s *OCI8Stmt) Close() error
- func (s *OCI8Stmt) Exec(args []driver.Value) (r driver.Result, err error)
- func (s *OCI8Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (s *OCI8Stmt) NumInput() int
- func (s *OCI8Stmt) Query(args []driver.Value) (rows driver.Rows, err error)
- func (s *OCI8Stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
- type OCI8Tx
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastInsertId ¶
func QueryEscape ¶
QueryEscape escapes the string so it can be safely placed inside a URL query.
func QueryUnescape ¶
QueryUnescape does the inverse transformation of QueryEscape, converting %AB into the byte 0xAB and '+' into ' ' (space). It returns an error if any % is not followed by two hexadecimal digits.
Types ¶
type DSN ¶
type DSN struct { Connect string Username string Password string Location *time.Location // contains filtered or unexported fields }
func ParseDSN ¶
ParseDSN parses a DSN used to connect to Oracle It expects to receive a string in the form: [username/[password]@]host[:port][/instance_name][?param1=value1&...¶mN=valueN]
Currently the parameters supported is: 1 'loc' which sets the timezone to read times in as and to marshal to when writing times to Oracle date, 2 'isolation' =READONLY,SERIALIZABLE,DEFAULT 3 'prefetch_rows' 4 'prefetch_memory' 5 'questionph' =YES,NO,TRUE,FALSE enable question-mark placeholders, default to false
type EscapeError ¶
type EscapeError string
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type OCI8Conn ¶
type OCI8Conn struct {
// contains filtered or unexported fields
}
func (*OCI8Conn) CheckNamedValue ¶
func (c *OCI8Conn) CheckNamedValue(nv *driver.NamedValue) error
func (*OCI8Conn) ExecContext ¶
func (c *OCI8Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
ExecContext implement ExecerContext.
func (*OCI8Conn) PrepareContext ¶
PrepareContext implement ConnPrepareContext.
type OCI8Driver ¶
type OCI8Driver struct { }
type OCI8Result ¶
type OCI8Result struct {
// contains filtered or unexported fields
}
func (*OCI8Result) LastInsertId ¶
func (r *OCI8Result) LastInsertId() (int64, error)
func (*OCI8Result) RowsAffected ¶
func (r *OCI8Result) RowsAffected() (int64, error)
type OCI8Rows ¶
type OCI8Rows struct {
// contains filtered or unexported fields
}
func (*OCI8Rows) ColumnTypeDatabaseTypeName ¶
ColumnTypeDatabaseTypeName implement RowsColumnTypeDatabaseTypeName.
func (*OCI8Rows) ColumnTypeLength ¶
func (*OCI8Rows) ColumnTypeNullable ¶
ColumnTypeNullable implement RowsColumnTypeNullable.
func (*OCI8Rows) ColumnTypeScanType ¶
ColumnTypeScanType implement RowsColumnTypeScanType.
type OCI8Stmt ¶
type OCI8Stmt struct {
// contains filtered or unexported fields
}
func (*OCI8Stmt) ExecContext ¶
func (s *OCI8Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
ExecContext implement ExecerContext.
func (*OCI8Stmt) QueryContext ¶
QueryContext implement QueryerContext.
type Values ¶
Values maps a string key to a list of values. It is typically used for query parameters and form values. Unlike in the http.Header map, the keys in a Values map are case-sensitive.
func ParseQuery ¶
ParseQuery parses the URL-encoded query string and returns a map listing the values specified for each key. ParseQuery always returns a non-nil map containing all the valid query parameters found; err describes the first decoding error encountered, if any.
func (Values) Add ¶
Add adds the value to key. It appends to any existing values associated with key.
func (Values) Encode ¶
Encode encodes the values into “URL encoded” form ("bar=baz&foo=quux") not sorted by key