sqlite

package
v0.0.0-...-1101e8a Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2016 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteDatabase

type SQLiteDatabase struct {
	FileName    string
	Database    *sql.DB
	Transaction *sql.Tx
}

func CreateEmpty

func CreateEmpty(Name string, SchemaFile string) (*SQLiteDatabase, error)

func GetByName

func GetByName(Name string) (*SQLiteDatabase, error)

func (*SQLiteDatabase) Close

func (s *SQLiteDatabase) Close() error

func (*SQLiteDatabase) Commit

func (s *SQLiteDatabase) Commit() error

func (*SQLiteDatabase) GetEverythingWithinCoordinates

func (s *SQLiteDatabase) GetEverythingWithinCoordinates(FromLong, FromLat, ToLong, ToLat int) (*database.OSMData, error)

func (*SQLiteDatabase) NewTransaction

func (s *SQLiteDatabase) NewTransaction() error

func (*SQLiteDatabase) ReadNode

func (s *SQLiteDatabase) ReadNode(Id int64) (node element.Node, err error)

func (*SQLiteDatabase) ReadNodeTag

func (s *SQLiteDatabase) ReadNodeTag(Id int64) (tagMap element.Tags, err error)

func (*SQLiteDatabase) ReadRelation

func (s *SQLiteDatabase) ReadRelation(Id int64) (relation element.Relation, err error)

func (*SQLiteDatabase) ReadRelationMembers

func (s *SQLiteDatabase) ReadRelationMembers(Id int64) (members []element.Member, err error)

func (*SQLiteDatabase) ReadRelationTags

func (s *SQLiteDatabase) ReadRelationTags(Id int64) (tagMap element.Tags, err error)

func (*SQLiteDatabase) ReadWay

func (s *SQLiteDatabase) ReadWay(Id int64) (way element.Way, err error)

func (*SQLiteDatabase) ReadWayNodes

func (s *SQLiteDatabase) ReadWayNodes(Id int64) (nodes []int64, err error)

func (*SQLiteDatabase) ReadWayTags

func (s *SQLiteDatabase) ReadWayTags(Id int64) (tagMap element.Tags, err error)

func (*SQLiteDatabase) WriteNodeTags

func (s *SQLiteDatabase) WriteNodeTags(Nodes chan element.Node) error

func (*SQLiteDatabase) WriteNodes

func (s *SQLiteDatabase) WriteNodes(Nodes chan element.Node) error

func (*SQLiteDatabase) WriteRelation

func (s *SQLiteDatabase) WriteRelation(Relations chan element.Relation) error

func (*SQLiteDatabase) WriteRelationMembers

func (s *SQLiteDatabase) WriteRelationMembers(Relations chan element.Relation) error

func (*SQLiteDatabase) WriteRelationTags

func (s *SQLiteDatabase) WriteRelationTags(Relations chan element.Relation) error

func (*SQLiteDatabase) WriteWayNodes

func (s *SQLiteDatabase) WriteWayNodes(Ways chan element.Way) error

func (*SQLiteDatabase) WriteWayTags

func (s *SQLiteDatabase) WriteWayTags(Ways chan element.Way) error

func (*SQLiteDatabase) WriteWays

func (s *SQLiteDatabase) WriteWays(Ways chan element.Way) error

Jump to

Keyboard shortcuts

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