Skip to content

Instantly share code, notes, and snippets.

@aschreyer
Created November 2, 2012 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aschreyer/3999973 to your computer and use it in GitHub Desktop.
Save aschreyer/3999973 to your computer and use it in GitHub Desktop.
UniChem PostgreSQL Foreign Data Wrapper
SELECT *
FROM credo.unichem_pdb_to_kegg
LIMIT 10;
het_id compound_id
------ -----------
LQZ C07073
HC4 C00811
DC5 C14355
POD C10874
FAH C06108
AIC C06574
SLI C18915
BTN C00120
DO4 C00433
APR C00301
(10 rows)
Time: 424.420 ms
CREATE extension multicorn;
CREATE SERVER unichem_srv FOREIGN DATA WRAPPER multicorn
OPTIONS (wrapper 'scifdw.UniChemForeignDataWrapper');
CREATE FOREIGN TABLE credo.unichem_pdb_to_kegg (
het_id text,
compound_id text
) SERVER unichem_srv
OPTIONS (method 'mapping',
src_id '3',
to_src_id '6');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment