mysqltypes

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

mysqltypes

Build Status Coverage Status Providing golang types specifically for mysql Currently there is on a nullable version of a bit bool. In Mysql/Mariadb this is bit(1) where the not null flag is not set.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullBitBool

type NullBitBool struct {
	Bool  bool
	Valid bool
}

NullBitBool Nullable Bit Bool for mysql. This is a nullable struct that can be used whern a bit(1) type in mysql is nullable

func (*NullBitBool) Scan

func (n *NullBitBool) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*NullBitBool) Value

func (n *NullBitBool) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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