Package visgraph :: Module dbcore
[hide private]
[frames] | no frames]

Module dbcore

source code

Visgraph supports backing the graph objects with a postgres db.

Classes [hide private]
  DbGraphStore
A DbGraphStore object may be used for all the standard management of node and edge information but may not be used for path queries.
  DbSubGraph
A subgraph in the database is basically a forward cached instance of selected nodes and edges in an in-memory graph (visgraph.graphcore.Graph).
Functions [hide private]
 
initGraphDb(dbinfo) source code
Variables [hide private]
  init_db = ...
  default_dbinfo = {'user': 'visgraph', 'password': 'ohhai!', 'd...
Variables Details [hide private]

init_db

Value:
'''
    DROP TABLE IF EXISTS vg_edges;
    CREATE TABLE vg_edges (
        eid     BIGSERIAL,
        n1      BIGINT,
        n2      BIGINT,
        created TIMESTAMP DEFAULT NOW(),
        PRIMARY KEY (eid)
...

default_dbinfo

Value:
{'user': 'visgraph', 'password': 'ohhai!', 'database': 'visgraph',}