types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package types contains Go types corresponding to database types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Geography

type Geography struct {
	Valid     bool
	Type      GeographyType
	Longitude float64
	Latitude  float64
}

func NewPoint

func NewPoint(longitude float64, latitude float64) Geography

func (*Geography) NullableLatitude

func (g *Geography) NullableLatitude() *float64

func (*Geography) NullableLongitude

func (g *Geography) NullableLongitude() *float64

func (*Geography) Scan

func (g *Geography) Scan(src any) error

func (Geography) Value

func (g Geography) Value() (driver.Value, error)

type GeographyType

type GeographyType uint32
const (
	Point GeographyType = 0x20000001
)

Jump to

Keyboard shortcuts

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