sphinx\Connection getIndexSchema()

getIndexSchema() public method Obtains the schema information for the named index. public yii\sphinx\IndexSchema getIndexSchema ( $name, $refresh = false )$name string Index name. $refresh boolean Whether to reload the table schema even if it is found in the cache. return yii\sphinx\IndexSchema Index schema information. Null if the named index does not exist.

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 $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\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\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 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

sphinx\Command resetSequence()

resetSequence() public method Creates a SQL command for resetting the sequence value of a table's primary key. The sequence will be reset such that the primary key of the next new row inserted will have the specified value or 1. public $this resetSequence ( $table, $value = null )$table string The name of the table whose primary key sequence will be reset $value mixed The value for the primary key of the next new row inserted. If this is not set, the next new row's primary key will hav