Documentation ¶
Index ¶
- func GetBool(value *sql.NullBool) *bool
- func GetFloat64(value *sql.NullFloat64) *float64
- func GetInt64(value *sql.NullInt64) *int64
- func GetNullBool(value *bool) *sql.NullBool
- func GetNullFloat64(value *float64) *sql.NullFloat64
- func GetNullInt64(value *int64) *sql.NullInt64
- func GetNullString(value *string) *sql.NullString
- func GetString(value *sql.NullString) *string
- func NewDBConnection(driverName string, dataSourceName string) (*sql.DB, error)
- func Transact(DB *sql.DB, fnTransact func(*sql.Tx) error) error
- func TransactExec(tx *sql.Tx, query string, args ...interface{}) (sql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat64 ¶ added in v0.0.11
func GetFloat64(value *sql.NullFloat64) *float64
GetFloat64 returns a valid value from db sql float64, nil otherwise
func GetNullBool ¶ added in v0.0.11
GetNullBool returns a valid value from db sql bool, nil otherwise
func GetNullFloat64 ¶ added in v0.0.11
func GetNullFloat64(value *float64) *sql.NullFloat64
GetNullFloat64 returns a valid value from db sql float64, nil otherwise
func GetNullInt64 ¶ added in v0.0.11
GetNullInt64 returns a null int64 from a int64
func GetNullString ¶ added in v0.0.11
func GetNullString(value *string) *sql.NullString
GetNullString returns a null string from a string
func GetString ¶ added in v0.0.11
func GetString(value *sql.NullString) *string
GetString returns a valid value from db sql string, nil otherwise
func NewDBConnection ¶
NewDBConnection creates a new db connection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.