custom

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZeroIsAlmostZero bool

Functions

func AsFloat64

func AsFloat64(v interface{}) float64

func AsInt32

func AsInt32(v interface{}) int32

func AsInt64

func AsInt64(v interface{}) int64

func AsString

func AsString(v interface{}) string

func AsTime

func AsTime(v interface{}) time.Time

func NumbersFromStrings

func NumbersFromStrings(s *[]string) *[]godror.Number

func ParseTime added in v0.5.1

func ParseTime(t *time.Time, s string) error

Types

type DateTime added in v0.6.0

type DateTime struct {
	time.Time
}

func AsDate

func AsDate(v interface{}) *DateTime

func (DateTime) Marshal added in v0.6.0

func (dt DateTime) Marshal() (dAtA []byte, err error)

func (DateTime) MarshalJSON added in v0.7.3

func (dt DateTime) MarshalJSON() ([]byte, error)

func (DateTime) MarshalText added in v0.7.3

func (dt DateTime) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface. The time is formatted in RFC 3339 format, with sub-second precision added if present.

func (DateTime) MarshalTo added in v0.6.0

func (dt DateTime) MarshalTo(dAtA []byte) (int, error)

func (DateTime) MarshalXML added in v0.6.0

func (dt DateTime) MarshalXML(enc *xml.Encoder, start xml.StartElement) error

func (DateTime) ProtoMessage added in v0.6.0

func (DateTime) ProtoMessage()

func (DateTime) ProtoSize added in v0.6.0

func (dt DateTime) ProtoSize() (n int)

func (*DateTime) Reset added in v0.6.0

func (dt *DateTime) Reset()

func (DateTime) Size added in v0.6.0

func (dt DateTime) Size() (n int)

func (DateTime) String added in v0.6.0

func (dt DateTime) String() string

func (DateTime) Timestamp added in v0.6.0

func (dt DateTime) Timestamp() *types.Timestamp

func (*DateTime) Unmarshal added in v0.6.0

func (dt *DateTime) Unmarshal(dAtA []byte) error

func (*DateTime) UnmarshalJSON added in v0.7.3

func (dt *DateTime) UnmarshalJSON(data []byte) error

func (*DateTime) UnmarshalText added in v0.7.3

func (dt *DateTime) UnmarshalText(data []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in RFC 3339 format.

func (*DateTime) UnmarshalXML added in v0.6.0

func (dt *DateTime) UnmarshalXML(dec *xml.Decoder, st xml.StartElement) error

type Lob

type Lob struct {
	*godror.Lob
	// contains filtered or unexported fields
}

func (*Lob) Marshal

func (L *Lob) Marshal() ([]byte, error)

func (*Lob) MarshalTo

func (L *Lob) MarshalTo(p []byte) (int, error)

func (*Lob) Scan

func (L *Lob) Scan(src interface{}) error

Scan assigns a value from a database driver.

func (*Lob) Size

func (L *Lob) Size() int

func (*Lob) Unmarshal

func (L *Lob) Unmarshal(p []byte) error

func (*Lob) Value

func (L *Lob) Value() (driver.Value, error)

Value returns a driver Value.

type Number

type Number godror.Number

func (Number) Get

func (n Number) Get() godror.Number

func (*Number) Scan

func (n *Number) Scan(src interface{}) error

Scan assigns a value from a database driver.

func (*Number) Set

func (n *Number) Set(num godror.Number)

func (Number) Value

func (n Number) Value() (driver.Value, error)

Value returns a driver Value.

Jump to

Keyboard shortcuts

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