test

package
v0.0.0-...-e0e6d92 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Test

type Test struct {
	CBigInt           sql.NullInt64  `db:"CBigInt"`
	CBigSerial        sql.NullInt64  `db:"CBigSerial"`
	CBitVarying       sql.NullString `db:"CBitVarying"`
	CBit              sql.NullString `db:"CBit"`
	CBoolean          sql.NullBool   `db:"CBoolean"`
	CCharacter        sql.NullString `db:"CCharacter"`
	CCharacterVarying sql.NullString `db:"CCharacterVarying"`
	CDate             sql.NullString `db:"CDate"`
	CDouble           float64        `db:"CDouble"`
	CInteger          sql.NullInt64  `db:"CInteger"`
	// No mapping available for postgres datatype interval
	//    CInterval ???? `db:"CInterval"`
	CJson                     sql.NullString  `db:"CJson"`
	CNumeric                  sql.NullFloat64 `db:"CNumeric"`
	CReal                     sql.NullFloat64 `db:"CReal"`
	CSmallint                 sql.NullInt64   `db:"CSmallint"`
	CSmallSerial              sql.NullInt64   `db:"CSmallSerial"`
	CSerial                   sql.NullInt64   `db:"CSerial"`
	CText                     sql.NullString  `db:"CText"`
	CTimeWithoutTimezone      sql.NullString  `db:"CTimeWithoutTimezone"`
	CTimeWithTimezone         sql.NullString  `db:"CTimeWithTimezone"`
	CTimestampWithoutTimezone *time.Time      `db:"CTimestampWithoutTimezone"`
	CTimestampWithTimezone    *time.Time      `db:"CTimestampWithTimezone"`
	// No mapping available for postgres datatype uuid
	//    CUuid ???? `db:"CUuid"`
	CXML   sql.NullString `db:"CXML"`
	Id     int64          `db:"Id"`
	CBytea []byte         `db:"CBytea"`
}

Struct for database table test

func (*Test) GetCDate

func (s *Test) GetCDate() (time.Time, error)

func (*Test) GetCTimeWithTimezone

func (s *Test) GetCTimeWithTimezone() (time.Time, error)

func (*Test) GetCTimeWithoutTimezone

func (s *Test) GetCTimeWithoutTimezone() (time.Time, error)

func (*Test) SetCDate

func (s *Test) SetCDate(t time.Time)

func (*Test) SetCTimeWithTimezone

func (s *Test) SetCTimeWithTimezone(t time.Time)

func (*Test) SetCTimeWithoutTimezone

func (s *Test) SetCTimeWithoutTimezone(t time.Time)

type Test1

type Test1 struct {
	CDate      *time.Time `db:"CDate"`
	CTime      *time.Time `db:"CTime"`
	CTimestamp *time.Time `db:"CTimestamp"`
}

Struct for database table test1

Jump to

Keyboard shortcuts

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