service-database

command module
v0.0.0-...-300e357 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

Database Service

Database service in Go for the GreenNav project
This repository contains code which follows the Design plan for database service

Setup Instructions:

Install golang and make sure it is present in the environment $PATH:
Check go env to make sure everything is set.

  1. Get this package

go get -u github.com/Greennav/service-database


2. Fork the service-database repo and add new remote to your local copy of package
    ```bash
  cd $GOPATH/src/github.com/Greennav/service-database
  go get -u
  git remote add fork git@github.com:{GITHUB_USER}/service-database.git
  1. Go to the repository and run

go build database-service.go ./database-service -i importer/monaco.osm.pbf -f test.db sqlite3 test.db

    ```SQL
  sqlite> select count(*) from nodes;
  978
  1. Now you can push commits to your fork and then send PR

git commit -a -m "Very important fix" git push fork

  
## Current Status

The SQLite subpackage can import and write all nodes, ways and relations of a pbf file including tags. The nodes of a way are currently not imported somehow. Reading of the exported data from the database is completely missing; so is the REST-interface for queries and the PostgreSQL interface.

### Next Steps

- Make the import of the way's nodes work (sqlite/WriteWayNodes)
- Read the data from the database (sqlite/GetEverythingWithinCoordinates)
- Create a REST-interface and connect to sqlite/GetEverythingWithinCoordinates

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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