public function ensureIndex($keys, $options = [], $cb = null) { $this->pool->ensureIndex($this->name, $keys, $options, $cb); }
/** * */ public function init() { $this->externalAuthTokens = $this->appInstance->db->{$this->appInstance->dbname . '.externalAuthTokens'}; $this->externalAuthTokens->ensureIndex(['extTokenHash' => 1], ['unique' => true]); }