Class PgtmlPhp

Class PgtmlPhp

SYNOPSIS

import pgtmlphp
class PgtmlPhp(PgtmlGraph)
  string __module__ = 'pgtmlphp'
  def write_insert_form(self, output)
  def write_insert_query(self, output)
  def write_select_query(self, output)
  def write_update_query(self, output)

  # Methods inherited by PgtmlPhp from Object
  def __cmp__(self, object)
  def __hash__(self)
  def __nonzero__(self)
  def __str__(self)
  def copy(self)
  def write(self, filename)

  # Methods inherited by PgtmlPhp from PgtmlGraph
  def __init__(self, pgmlbase_simplified)
  def get_insert(self)
  def get_select(self)
  def get_update(self)
  def read(self, filename)
  def write_insert_function(self, output)
  def write_update_function(self, output)

  # Methods inherited by PgtmlPhp from Graph
  def clear_tags(self)
  def get_dfs_path(self, object1, object2)
  def insert(self, object)
  def insert_edge(self, object1, label, object2)

  # Methods inherited by PgtmlPhp from Map
  def __add__(self, map)
  def __delitem__(self, key)
  def __getitem__(self, key)
  def __len__(self)
  def __setitem__(self, key, value)
  def add(self, map)
  def clear(self)
  def has_key(self, key)
  def insert_map(self, map)
  def items(self)
  def keys(self)
  def values(self)

  # Methods inherited by PgtmlPhp from Set
  def __repr__(self)
  def insert_set(self, set)

DESCRIPTION

def __add__(self, map)

Non commutative addition. A new map is created

def __str__(self)

do not overload, should be equivalent to self.name

def get_update(self)

DROP FUNCTION update_viewname([ranked_attribute,ranked_constraint]*); CREATE FUNCTION update_viewname([ranked_attribute,ranked_constraint]*) RETURNS INTEGER AS ' DECLARE toids RECORD; BEGIN FOR toids IN SELECT [as_table_i.OID]+ FROM [table_i as_table_i","]+ WHERE [as_table_i.ref_table_j = as_table_j.id_table_j AND]* [as_table_i.constraint_j->name constraint_j->value]* LOOP [UPDATE as_table_i.OID SET [as_table_i.attr_j = ranked_attribute_k","]+]+ END LOOP; END; ' LANGUAGE plpgsql;

def insert(self, object)

return a vertex

def write(self, filename)

serialization

def write_insert_function(self, output)

Writes raw SQL insert query to output (stdout)

def write_update_function(self, output)

Writes raw SQL update query to output (stdout)

SEE ALSO

pgtmlphp

PgtmlGraph


Generated by HTMLFormatter at Fri Dec 20 18:58:52 2002