schema

package
v0.0.0-...-482f3e0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	ent.Schema
}

Location holds the schema definition for the Location entity.

func (Location) Edges

func (Location) Edges() []ent.Edge

Edges of the Location.

func (Location) Fields

func (Location) Fields() []ent.Field

Fields of the Location.

type Point

type Point [2]float64

A Point consists of (X,Y) or (Lat, Lon) coordinates and it is stored in MySQL the POINT spatial data type.

func (Point) FormatParam

func (p Point) FormatParam(placeholder string, info *sql.StmtInfo) string

FormatParam implements the sql.ParamFormatter interface to tell the SQL builder that the placeholder for a Point parameter needs to be formatted.

func (*Point) Scan

func (p *Point) Scan(value interface{}) error

Scan implements the Scanner interface.

func (Point) SchemaType

func (Point) SchemaType() map[string]string

SchemaType defines the schema-type of the Point object.

func (Point) Value

func (p Point) 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