transform

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HstoreToMapString

func HstoreToMapString(hs postgres.Hstore) map[string]string

HstoreToMapString converts an PostgreSQL HSTORE field into a map of strings

func Int32ToSQLNullInt32

func Int32ToSQLNullInt32(i int32) sql.NullInt32

Int32ToSQLNullInt32 converts an int32 to an SQL Int32

func Int32sToUints

func Int32sToUints(input []int32) []uint

Int32sToUints converts a list of int32 to a list of uint

func MapStringToHStore

func MapStringToHStore(m map[string]string) (hs postgres.Hstore)

MapStringToHStore converts a map of strings into an PostgreSQL HSTORE field

func SQLNullFloat64ToWrapperFloat

func SQLNullFloat64ToWrapperFloat(nf sql.NullFloat64) *wrappers.FloatValue

SQLNullFloat64ToWrapperFloat converts an SQL NullFloat64 to a Protobuf NullFloat

func SQLNullInt32ToWrapperInt32

func SQLNullInt32ToWrapperInt32(nf sql.NullInt32) *wrappers.Int32Value

SQLNullInt32ToWrapperInt32 converts an SQL NullInt32 to a Protobuf Int32Value

func SQLNullInt64ToWrapperInt64

func SQLNullInt64ToWrapperInt64(nf sql.NullInt64) *wrappers.Int64Value

SQLNullInt64ToWrapperInt64 converts an SQL NullInt64 to a Protobuf Int64Value

func SQLNullStringToString

func SQLNullStringToString(ns sql.NullString) string

SQLNullStringToString converts an SQL NullString to a string

func SQLNullStringToWrapperInt32

func SQLNullStringToWrapperInt32(nf sql.NullString) *wrappers.Int32Value

SQLNullStringToWrapperInt32 converts an SQL NullString to a Protobuf Int32Value

func SQLNullStringToWrapperString

func SQLNullStringToWrapperString(ns sql.NullString) *wrappers.StringValue

SQLNullStringToString converts an SQL NullString to a Protobuf StringValue

func StringToInt32

func StringToInt32(s string) (int32, error)

StringToInt32 converts a string to an int32

func StringToSQLNullString

func StringToSQLNullString(s string) sql.NullString

StringToSQLNullString builds an SQL NullString from a string

func StringToSQLNullStringList

func StringToSQLNullStringList(s []string) []sql.NullString

StringToSQLNullStringList builds a list of SQL NullString from a list of string

func WrapperFloatToSQLNullFloat64

func WrapperFloatToSQLNullFloat64(f *wrappers.FloatValue) sql.NullFloat64

WrapperFloatToSQLNullFloat64 converts a Protobuf FloatValue to an SQL NullFloat64

func WrapperInt32ToSQLNullInt32

func WrapperInt32ToSQLNullInt32(f *wrappers.Int32Value) sql.NullInt32

WrapperInt32ToSQLNullInt32 converts a Protobuf Int32Value to an SQL NullInt32

func WrapperInt32ToSQLNullString

func WrapperInt32ToSQLNullString(f *wrappers.Int32Value) sql.NullString

WrapperInt32ToSQLNullString converts a Protobuf Int32Value to an SQL NullString

func WrapperInt64ToSQLNullInt64

func WrapperInt64ToSQLNullInt64(f *wrappers.Int64Value) sql.NullInt64

WrapperInt64ToSQLNullInt64 converts a Protobuf Int64Value to an SQL NullInt64

func WrapperStringToNullString

func WrapperStringToNullString(w *wrappers.StringValue) sql.NullString

WrapperStringToNullString converts a Protobuf StringValue to an SQL NullString

Types

This section is empty.

Jump to

Keyboard shortcuts

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