Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geops/pg_routejoin
automatically build SQL to join tables based on foreign key constraints
https://github.com/geops/pg_routejoin
Last synced: 7 days ago
JSON representation
automatically build SQL to join tables based on foreign key constraints
- Host: GitHub
- URL: https://github.com/geops/pg_routejoin
- Owner: geops
- License: mit
- Created: 2010-07-06T16:36:34.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2016-03-30T14:53:36.000Z (over 8 years ago)
- Last Synced: 2024-03-25T23:20:47.445Z (8 months ago)
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
What it is...
=============This project offers database functions to dynamically create
the SQL to join a list of tables and views.The joins are generated based on constraints (foreign keys) as
defined in the database and are routed using [Dijkstra's algorithm](http://en.wikipedia.org/wiki/Dijkstra's_algorithm).
Additional routes can be defined or others can be ignored,
for example for including views in the joins.Documentation
=============See the comments of functions and views in the
database.Requirements
============* Postgresql 8.3+ (maybe some lower versions will also work)
* plpythonu database language
* Python 2.5+Installation
============* install the Python module with
``./setup.py install``
* create the plpythonu database language in your database
``create language plpythonu;``
* import the sql/create.sql file in the database