Documentation ¶
Overview ¶
Package mapping provides functions for defining and executing the database schema.
Index ¶
- Variables
- func Bool(val string, elem *element.OSMElem, match Match) interface{}
- func BoolInt(val string, elem *element.OSMElem, match Match) interface{}
- func Direction(val string, elem *element.OSMElem, match Match) interface{}
- func Geometry(val string, elem *element.OSMElem, match Match) interface{}
- func Id(val string, elem *element.OSMElem, match Match) interface{}
- func Integer(val string, elem *element.OSMElem, match Match) interface{}
- func Key(val string, elem *element.OSMElem, match Match) interface{}
- func PseudoArea(val string, elem *element.OSMElem, match Match) interface{}
- func String(val string, elem *element.OSMElem, match Match) interface{}
- func Value(val string, elem *element.OSMElem, match Match) interface{}
- func WayZOrder(val string, elem *element.OSMElem, match Match) interface{}
- type DestTable
- type ElementFilter
- type Field
- type FieldSpec
- type FieldType
- type Filters
- type GeneralizedTable
- type GeneralizedTables
- type MakeMakeValue
- type MakeValue
- type Mapping
- func (m *Mapping) ElementFilters() map[string][]ElementFilter
- func (m *Mapping) LineStringMatcher() *TagMatcher
- func (m *Mapping) NodeTagFilter() *TagFilter
- func (m *Mapping) PointMatcher() *TagMatcher
- func (m *Mapping) PolygonMatcher() *TagMatcher
- func (m *Mapping) RelationTagFilter() *RelationTagFilter
- func (m *Mapping) WayTagFilter() *TagFilter
- type Match
- type RelationTagFilter
- type SubMapping
- type Table
- type TableFields
- type TableType
- type Tables
- type TagFilter
- type TagMatcher
- type TagTables
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableFieldTypes map[string]FieldType
Functions ¶
Types ¶
type ElementFilter ¶
type Field ¶
type FieldType ¶
type FieldType struct { Name string GoType string Func MakeValue MakeFunc MakeMakeValue }
type GeneralizedTable ¶
type GeneralizedTables ¶
type GeneralizedTables map[string]*GeneralizedTable
type MakeValue ¶
func MakeSuffixReplace ¶
type Mapping ¶
type Mapping struct { Tables Tables `json:"tables"` GeneralizedTables GeneralizedTables `json:"generalized_tables"` }
func NewMapping ¶
func (*Mapping) ElementFilters ¶
func (m *Mapping) ElementFilters() map[string][]ElementFilter
func (*Mapping) LineStringMatcher ¶
func (m *Mapping) LineStringMatcher() *TagMatcher
func (*Mapping) NodeTagFilter ¶
func (*Mapping) PointMatcher ¶
func (m *Mapping) PointMatcher() *TagMatcher
func (*Mapping) PolygonMatcher ¶
func (m *Mapping) PolygonMatcher() *TagMatcher
func (*Mapping) RelationTagFilter ¶
func (m *Mapping) RelationTagFilter() *RelationTagFilter
func (*Mapping) WayTagFilter ¶
type Match ¶
type RelationTagFilter ¶
type RelationTagFilter struct {
TagFilter
}
type SubMapping ¶
type Table ¶
type Table struct { Name string Type TableType `json:"type"` Mapping map[string][]string `json:"mapping"` Mappings map[string]SubMapping `json:"mappings"` Fields []*Field `json:"fields"` Filters *Filters `json:"filters"` }
func (*Table) TableFields ¶
func (t *Table) TableFields() *TableFields
type TableFields ¶
type TableFields struct {
// contains filtered or unexported fields
}
type TagMatcher ¶
type TagMatcher struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.