pgarray

package
v0.0.0-...-bf09d72 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int32Slice

type Int32Slice []int32

Int32Slice can be scanned out of the DB

func (*Int32Slice) Scan

func (s *Int32Slice) Scan(src interface{}) error

Scan Implements sql.Scanner for the String slice type Scanners take the database value (in this case as a byte slice) and sets the value of the type. Here we cast to a string and do a regexp based parse

func (Int32Slice) Value

func (s Int32Slice) Value() (driver.Value, error)

Value implements driver.Valuer interface which allows StringSlices to be automatically parsed when passed into sql functions

type Int64Slice

type Int64Slice []int64

Int64Slice can be scanned out of the DB

func (*Int64Slice) Scan

func (s *Int64Slice) Scan(src interface{}) error

Scan Implements sql.Scanner for the String slice type Scanners take the database value (in this case as a byte slice) and sets the value of the type. Here we cast to a string and do a regexp based parse

func (Int64Slice) Value

func (s Int64Slice) Value() (driver.Value, error)

Value implements driver.Valuer interface which allows StringSlices to be automatically parsed when passed into sql functions

type StringSlice

type StringSlice []string

StringSlice can be scanned out of the DB - copied from https://gist.github.com/adharris/4163702

func (*StringSlice) Scan

func (s *StringSlice) Scan(src interface{}) error

Scan Implements sql.Scanner for the String slice type Scanners take the database value (in this case as a byte slice) and sets the value of the type. Here we cast to a string and do a regexp based parse

func (StringSlice) Value

func (s StringSlice) Value() (driver.Value, error)

Value implements driver.Valuer interface which allows StringSlices to be automatically parsed when passed into sql functions

Jump to

Keyboard shortcuts

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