Skip to content

loveencounterflow/intershop-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InterShop RPC

Table of Contents generated with DocToc

A NodeJS RPC server for InterShop.

To Do

  • Documentation.
  • transition from old implementation in InterShop:
    • check code completeness
    • remove prv
    • rewrite code that uses prev model
    • reflect on how to deal w/ log() functionality
    • cleanup code, esp. wrt. implicit meta-methods in $do_rpc()
    • rename/rewrite methods to adapt to XEmitter API conventions, i.e. use listen_to(), contract() and emit(), delegate() etc;
    • should provide a (partial) implementation of Datom (ex. a SQL method new_datom() should look similar to datom.new_datom(), result in JsonB)
    • equivalent to Datom's select() should use Postgres 12's new JSON Path functionality

Future Shape of RPC Datoms

For the time being we use ^${module_name}/${method_name} as keys for RPC; in the future, we will possibly move to issuing datoms like

{ $key: '^rpc', to: `${module_name}/${rkey}`, $value, }

where rkey may be any non-empty string as deemed appropriate by the authors of the RPC client library.

About

An RPC server for InterShop and NodeJS: Call JavaScript methods from PostgreSQL functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published