code: function(r) {
  					var rr = {};
  					if (typeof r[col.columnid] === 'undefined') {
  						return true;
  					}
  					rr[fk.columnid] = r[col.columnid];
  					var addr = fktable.pk.onrightfn(rr);
  					//						console.log(r, rr, addr);
  					//						console.log(fktable.uniqs[fktable.pk.hh][addr]);
  					if (!fktable.uniqs[fktable.pk.hh][addr]) {
  						throw new Error(
  							'Foreign key "' +
  								r[col.columnid] +
  								'" is not found in table ' +
  								fktable.tableid
  						);
  					}
  					return true;
  				}
docs: console.log(fktable.pk);