sqlhelper

package
v0.0.0-...-757bef6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntOr

func IntOr(v interface{}, def int) int

func ResultSetFromRows

func ResultSetFromRows(rows *sql.Rows) ([]map[string]interface{}, error)

func StringOr

func StringOr(v interface{}, def string) string

StringOr returns the string value of v if v is a string, if its nil or if it cannot be casted to string it returns def

func TimestampOr

func TimestampOr(v interface{}, def time.Time) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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