fn_post_odbc | R Documentation |
Post any entity to via an ODBC connection. This allows users to insert or update entities within database.
fn_post_odbc(entity_type, pk, inputs, con, obj = FALSE, debug = FALSE)
entity_type |
Most often dh_feature or dh_properties. Indicates which table to retrieve data from. This will be the target table for the query constructed from user inputs input list |
pk |
= primary key column name, e.g. hydroid, pid, ... |
inputs |
contents of record to post in list (pid, propname, propvalue, ...). If missing essential values, post will fail. Required information may be found in each table description on the postgres database. Contact OWS WSPA data coordinator for more information |
con |
connection to ODBC server |
obj |
optional class with extra query info |
debug |
optional show query pieces |
fn_get_odbc, fn_post_rest
## Not run:
fn_post_odbc('dh_properties','pid',
inputs = list(pid = NA,bundle = NA, featureid = NA, etc.),
con = datasource$connection, obj = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.