Exemplo n.º 1
0
 def edge_val_dump(self):
     """Yield the entire contents of the edge_val table."""
     self._flush_edge_val()
     unpack = self.unpack
     for (graph, orig, dest, idx, key, branch, turn, tick,
          value) in self.sql('edge_val_dump'):
         yield (unpack(graph), unpack(orig), unpack(dest), idx, unpack(key),
                branch, turn, tick, unpack(value))
Exemplo n.º 2
0
 def edges_dump(self):
     """Dump the entire contents of the edges table."""
     self._flush_edges()
     unpack = self.unpack
     for (graph, orig, dest, idx, branch, turn, tick,
          extant) in self.sql('edges_dump'):
         yield (unpack(graph), unpack(orig), unpack(dest), idx, branch,
                turn, tick, bool(extant))
Exemplo n.º 3
0
 def node_val_dump(self):
     """Yield the entire contents of the node_val table."""
     self._flush_node_val()
     unpack = self.unpack
     for (graph, node, key, branch, turn, tick,
          value) in self.sql('node_val_dump'):
         yield (unpack(graph), unpack(node), unpack(key), branch, turn,
                tick, unpack(value))
Exemplo n.º 4
0
 def nodes_dump(self):
     """Dump the entire contents of the nodes table."""
     self._flush_nodes()
     unpack = self.unpack
     for (graph, node, branch, turn, tick,
          extant) in self.sql('nodes_dump'):
         yield (unpack(graph), unpack(node), branch, turn, tick,
                bool(extant))
Exemplo n.º 5
0
 def global_items(self):
     """Iterate over (key, value) pairs in the ``globals`` table."""
     unpack = self.unpack
     for (k, v) in self.sql('global_dump'):
         yield (unpack(k), unpack(v))
Exemplo n.º 6
0
 def keyframes_dump(self):
     unpack = self.unpack
     for (graph, branch, turn, tick, nodes, edges,
          graph_val) in self.sql('keyframes_dump'):
         yield unpack(graph), branch, turn, tick, unpack(nodes), unpack(
             edges), unpack(graph_val)