Skip to content

comagic/plexor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plexor

Plexor is remote function call PL language.

Installation

$ make
$ make install

Quick examples

Remote call of function with same signature

create or replace function get_name(aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run on 0;
$$;

Remote call of function with same signature (explicit verion)

create or replace function get_name(aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run get_name(aperson_id) on 0;
$$;

Remote call of function with different signature on specified node

create or replace function get_name(anode integer, aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run get_person_name(aperson_id) on anode;
$$;

Remote call of function node is acquired by taking get_node(aperson_id)

create or replace function get_name(aperson_id integer)
returns text
    language plexor
    as $$
  cluster my_cluster;
  run get_person_name(aperson_id) on get_node(aperson_id);
$$;