*/
private $key;
+ /**
+ * @var array Additional query options
+ */
+ protected $options = [];
+
/**
* @param IDatabase $db The database to read from
* @param string|array $table The name or names of the table to read from
$this->conditions = array_merge( $this->conditions, $conditions );
}
+ /**
+ * @param array $options Query options suitable for use with
+ * IDatabase::select
+ */
+ public function addOptions( array $options ) {
+ $this->options = array_merge( $this->options, $options );
+ }
+
/**
* @param array $conditions Query join conditions suitable for use
* with IDatabase::select
[
'LIMIT' => $this->batchSize,
'ORDER BY' => $this->orderBy,
- ],
+ ] + $this->options,
$this->joinConditions
);