dbutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MiniStack

func MiniStack(skip int) string

MiniStack generates a tiny stack trace

Types

type Date

type Date time.Time

func (Date) MarshalJSON

func (d Date) MarshalJSON() ([]byte, error)

func (Date) String

func (d Date) String() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(b []byte) error

func (Date) Value

func (d Date) Value() (driver.Value, error)

type JSONArray

type JSONArray struct {
	Elements []interface{}
}

func (*JSONArray) MarshalJSON

func (ja *JSONArray) MarshalJSON() ([]byte, error)

func (*JSONArray) Scan

func (ja *JSONArray) Scan(val interface{}) error

func (*JSONArray) UnmarshalJSON

func (ja *JSONArray) UnmarshalJSON(b []byte) error

func (*JSONArray) Value

func (ja *JSONArray) Value() (driver.Value, error)

type JSONObject

type JSONObject map[string]interface{}

JSONObject represents a json column in the table. To handle it correctly, we need to manually scan it and output the relevant values

func (*JSONObject) Scan

func (s *JSONObject) Scan(val interface{}) error

func (*JSONObject) Value

func (s *JSONObject) Value() (driver.Value, error)

type StringArray

type StringArray struct {
	Strings []string
	// contains filtered or unexported fields
}

func (*StringArray) Contains

func (s *StringArray) Contains(v string) bool

func (*StringArray) Deduplicate

func (s *StringArray) Deduplicate()

func (*StringArray) HasSubset

func (s *StringArray) HasSubset(s2 []string) bool

func (*StringArray) Load

func (s *StringArray) Load(total string)

func (*StringArray) LoadMap

func (s *StringArray) LoadMap()

func (*StringArray) MarshalJSON

func (s *StringArray) MarshalJSON() ([]byte, error)

func (*StringArray) Scan

func (s *StringArray) Scan(val interface{}) error

func (*StringArray) String

func (s *StringArray) String() string

func (*StringArray) UnmarshalJSON

func (s *StringArray) UnmarshalJSON(b []byte) error

func (*StringArray) Value

func (s *StringArray) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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