map-pg
Promised Map interface for Table in PostgreSQL.
var MapPg = ;// new MapPg(<db>, [<table>], [<type>], [<key>], [<value>]);// db: database connection (dont use pool to avoid inconsistency)// table: name of database table (default = "map")// type: datatype of columns (default = {"key": "TEXT", "value": "TEXT"})// key: key columns (default = "key")// value: value columns (default = "value")// (NOTE: call .setup() if table does not exist)
var pg = ;var MapPg = ; var pool = DB_CONFIG;var type = "key": "TEXT" "value": "TEXT";pool;