sphinx\Connection quoteIndexName()

quoteIndexName() public method Quotes a index name for use in a query. If the index name contains schema prefix, the prefix will also be properly quoted. If the index name is already quoted or contains special characters including '(', '[[' and '{{', then this method will do nothing. public string quoteIndexName ( $name )$name string Index name return string The properly quoted index name

sphinx\Connection escapeMatchValue()

escapeMatchValue() public method Escapes all special characters from 'MATCH' statement argument. Make sure you are using this method whenever composing 'MATCH' search statement. Note: this method does not perform quoting, you should place the result in the quotes an perform additional escaping for it manually, the best way to do it is using PDO parameter. public string escapeMatchValue ( $str )$str string String to be escaped. return string The properly escaped string.

sphinx\Connection createCommand()

createCommand() public method Creates a command for execution. public yii\sphinx\Command createCommand ( $sql = null, $params = [] )$sql string The SQL statement to be executed $params array The parameters to be bound to the SQL statement return yii\sphinx\Command The Sphinx command

sphinx\Connection $schemaMap

$schemaMap public property Mapping between PDO driver names and yii\sphinx\Schema classes. The keys of the array are PDO driver names while the values the corresponding schema class name or configuration. Please refer to \yii\sphinx\Yii::createObject() for details on how to specify a configuration. This property is mainly used by getSchema() when fetching the database schema information. You normally do not need to set this property unless you want to use your own yii\sphinx\Schema class to

sphinx\Connection $enableFloatConversion

$enableFloatConversion public property (available since version 2.0.6) Whether to enable conversion of the float query params into the direct literal SQL insertion. This allows processing of the float values, since PDO does not provide specific param type for float binding, while Sphinx is unable to process float values passed as quoted strings. public boolean $enableFloatConversion = true

sphinx\Connection $lastInsertID

$lastInsertID public read-only property The row ID of the last row inserted, or the last value retrieved from the sequence object public string getLastInsertID ( $sequenceName = '' )

sphinx\Command update()

update() public method Creates an UPDATE command. For example, $connection->createCommand()->update('user', ['status' => 1], 'age > 30')->execute(); The method will properly escape the column names and bind the values to be updated. Note that the created command is not executed until execute() is called. public $this update ( $index, $columns, $condition = '', $params = [], $options = [] )$index string The index to be updated. $columns array The column data (name =>

sphinx\Command replace()

replace() public method Creates an REPLACE command. For example, $connection->createCommand()->replace('idx_user', [ 'name' => 'Sam', 'age' => 30, ])->execute(); The method will properly escape the column names, and bind the values to be replaced. Note that the created command is not executed until execute() is called. public $this replace ( $index, $columns )$index string The index that new rows will be replaced into. $columns array The column data (name =>

sphinx\Command truncateTable()

truncateTable() public method Creates a SQL command for truncating a DB table. public $this truncateTable ( $table )$table string The table to be truncated. The name will be properly quoted by the method. return $this The command object itself

sphinx\Command truncateIndex()

truncateIndex() public method Creates a SQL command for truncating a runtime index. public $this truncateIndex ( $index )$index string The index to be truncated. The name will be properly quoted by the method. return $this The command object itself