Code Monkey home page Code Monkey logo

postgres_adj_list's Introduction

This is some sample code that is to be kept for future reference.
The .py file is to be run. It generates the out.dot file (to be used with a program like graphviz) as well as generates a csv that can be inserted into the table for use. 
The .sql file contains the setup to make the table, some demo insertion queries and all of the work that allows the queries to work on the table task
Each .sql function has a explanation comment before it as well as some demo code after it with a comment that explains some use cases for that function.

RESOURCES:

    on adj list in postgres
    https://www.fusionbox.com/blog/detail/graph-algorithms-in-a-database-recursive-ctes-and-topological-sort-with-postgres/620/

    on ltree
    https://www.postgresql.org/docs/9.4/ltree.html (should be accessible from on network)
    https://dzone.com/articles/saving-a-tree-in-postgres-using-ltree
    https://leopard.in.ua/2013/09/02/postgresql-ltree#.XL2zDuhKhPY
    
    http://www.postgresonline.com/journal/archives/173-Using-LTree-to-Represent-and-Query-Hierarchy-and-Tree-Structures.html

postgres_adj_list's People

Contributors

seedor87 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.