custom

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0, UPL-1.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

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

Types

type DateTime

type DateTime struct {
	time.Time
}

func AsDate

func AsDate(v interface{}) *DateTime

func (DateTime) Marshal

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

func (DateTime) MarshalJSON

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

func (DateTime) MarshalText

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

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

func (DateTime) MarshalXML

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

func (DateTime) ProtoMessage

func (DateTime) ProtoMessage()

func (DateTime) ProtoSize

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

func (*DateTime) Reset

func (dt *DateTime) Reset()

func (DateTime) Size

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

func (DateTime) String

func (dt DateTime) String() string

func (DateTime) Timestamp

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

func (*DateTime) Unmarshal

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

func (*DateTime) UnmarshalJSON

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

func (*DateTime) UnmarshalText

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

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