Search hstore key value in PostgreSQL. Very handsome when crawling the database by meta informaiton. Currently works for non translated meta information.
searchKVP(key, value, con = get(Sys.getenv("TIMESERIESDB_CON")),
hstore = "meta_data", tbl = "meta_data_unlocalized", where = NULL,
schema = "timeseries")lookForKey(key, con = get(Sys.getenv("TIMESERIESDB_CON")),
hstore = "meta_data", tbl = "meta_data_unlocalized", where = NULL,
schema = "timeseries")
character
in the hstore
PostgreSQL connection object
name of the hstore column
name of the table to be queried. defaults to 'meta_data_localized'
character restrict the SQL query by an additional where clause. Defaults to NULL.
SQL schema name. defaults to timeseries. E.g.: ts_key LIKE ...