Documentation ¶
Index ¶
- func HstoreToMapString(hs postgres.Hstore) map[string]string
- func Int32ToSQLNullInt32(i int32) sql.NullInt32
- func Int32sToUints(input []int32) []uint
- func MapStringToHStore(m map[string]string) (hs postgres.Hstore)
- func SQLNullFloat64ToWrapperFloat(nf sql.NullFloat64) *wrappers.FloatValue
- func SQLNullInt32ToWrapperInt32(nf sql.NullInt32) *wrappers.Int32Value
- func SQLNullInt64ToWrapperInt64(nf sql.NullInt64) *wrappers.Int64Value
- func SQLNullStringToString(ns sql.NullString) string
- func SQLNullStringToWrapperInt32(nf sql.NullString) *wrappers.Int32Value
- func SQLNullStringToWrapperString(ns sql.NullString) *wrappers.StringValue
- func StringToInt32(s string) (int32, error)
- func StringToSQLNullString(s string) sql.NullString
- func StringToSQLNullStringList(s []string) []sql.NullString
- func WrapperFloatToSQLNullFloat64(f *wrappers.FloatValue) sql.NullFloat64
- func WrapperInt32ToSQLNullInt32(f *wrappers.Int32Value) sql.NullInt32
- func WrapperInt32ToSQLNullString(f *wrappers.Int32Value) sql.NullString
- func WrapperInt64ToSQLNullInt64(f *wrappers.Int64Value) sql.NullInt64
- func WrapperStringToNullString(w *wrappers.StringValue) sql.NullString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HstoreToMapString ¶
HstoreToMapString converts an PostgreSQL HSTORE field into a map of strings
func Int32ToSQLNullInt32 ¶
Int32ToSQLNullInt32 converts an int32 to an SQL Int32
func Int32sToUints ¶
Int32sToUints converts a list of int32 to a list of uint
func MapStringToHStore ¶
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 ¶
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.