Свойство | Type | Description | |
---|---|---|---|
$db | the Sphinx connection | ||
$typeMap | mapping from physical column types (keys) to abstract column types (values) |
Méthode | Description | |
---|---|---|
convertException ( Exception $e, string $rawSql ) : |
Converts a DB exception to a more concrete one if possible. | |
createQueryBuilder ( ) : |
Creates a query builder for the Sphinx. | |
getIndexNames ( boolean $refresh = false ) : string[] | Returns all index names in the Sphinx. | |
getIndexSchema ( string $name, boolean $refresh = false ) : |
Obtains the metadata for the named index. | |
getIndexSchemas ( boolean $refresh = false ) : |
Returns the metadata for all indexes in the database. | |
getIndexTypes ( boolean $refresh = false ) : array | Returns all index types in the Sphinx. | |
getPdoType ( mixed $data ) : integer | Determines the PDO type for the given PHP data value. | |
getQueryBuilder ( ) : |
||
getRawIndexName ( string $name ) : string | Returns the actual name of a given index name. | |
isReadQuery ( string $sql ) : boolean | Returns a value indicating whether a SQL statement is for read purpose. | |
quoteColumnName ( string $name ) : string | Quotes a column name for use in a query. | |
quoteIndexName ( string $name ) : string | Quotes a index name for use in a query. | |
quoteSimpleColumnName ( string $name ) : string | Quotes a column name for use in a query. | |
quoteSimpleIndexName ( string $name ) : string | Quotes a index name for use in a query. | |
quoteValue ( string $str ) : string | Quotes a string value for use in a query. | |
refresh ( ) | Refreshes the schema. |
Méthode | Description | |
---|---|---|
applyDefaultColumns ( |
Sets up the default columns for given index. | |
findColumns ( |
Collects the metadata of index columns. | |
findIndexes ( ) : array | Returns all index names in the Sphinx. | |
getCacheKey ( string $name ) : mixed | Returns the cache key for the specified index name. | |
getCacheTag ( ) : string | Returns the cache tag name. | |
getColumnPhpType ( |
Extracts the PHP type from abstract DB type. | |
initIndexesInfo ( ) | Initializes information about name and type of all index in the Sphinx. | |
loadColumnSchema ( array $info ) : |
Loads the column information into a ColumnSchema object. | |
loadIndexSchema ( string $name ) : |
Loads the metadata for the specified index. | |
resolveIndexNames ( |
Resolves the index name. | |
resolveIndexType ( |
Resolves the index name. |
protected applyDefaultColumns ( |
||
$index | the index metadata |
public convertException ( Exception $e, string $rawSql ) : |
||
$e | Exception | |
$rawSql | string | SQL that produced exception |
Résultat |
public createQueryBuilder ( ) : |
||
Résultat | query builder instance |
protected findColumns ( |
||
$index | the index metadata | |
Résultat | boolean | whether the index exists in the database |
protected findIndexes ( ) : array | ||
Résultat | array | all index names in the Sphinx. |
protected getCacheKey ( string $name ) : mixed | ||
$name | string | the index name |
Résultat | mixed | the cache key |
protected getCacheTag ( ) : string | ||
Résultat | string | the cache tag name |
protected getColumnPhpType ( |
||
$column | the column schema information | |
Résultat | string | PHP type name |
public getIndexNames ( boolean $refresh = false ) : string[] | ||
$refresh | boolean | whether to fetch the latest available index names. If this is false, index names fetched previously (if available) will be returned. |
Résultat | string[] | all index names in the Sphinx. |
public getIndexSchema ( string $name, boolean $refresh = false ) : |
||
$name | string | index name. The index name may contain schema name if any. Do not quote the index name. |
$refresh | boolean | whether to reload the index schema even if it is found in the cache. |
Résultat | index metadata. `null` - if the named index does not exist. |
public getIndexSchemas ( boolean $refresh = false ) : |
||
$refresh | boolean | whether to fetch the latest available index schemas. If this is false, cached data may be returned if available. |
Résultat | the metadata for all indexes in the Sphinx. Each array element is an instance of [[IndexSchema]] or its child class. |
public getIndexTypes ( boolean $refresh = false ) : array | ||
$refresh | boolean | whether to fetch the latest available index types. If this is false, index types fetched previously (if available) will be returned. |
Résultat | array | all index types in the Sphinx in format: index name => index type. |
public getPdoType ( mixed $data ) : integer | ||
$data | mixed | the data whose PDO type is to be determined |
Résultat | integer | the PDO type |
public getQueryBuilder ( ) : |
||
Résultat | the query builder for this connection. |
public getRawIndexName ( string $name ) : string | ||
$name | string | the index name to be converted |
Résultat | string | the real name of the given index name |
protected initIndexesInfo ( ) |
public isReadQuery ( string $sql ) : boolean | ||
$sql | string | the SQL statement |
Résultat | boolean | whether a SQL statement is for read purpose. |
protected loadColumnSchema ( array $info ) : |
||
$info | array | column information |
Résultat | the column schema object |
protected loadIndexSchema ( string $name ) : |
||
$name | string | index name |
Résultat | driver dependent index metadata. `null` - if the index does not exist. |
public quoteColumnName ( string $name ) : string | ||
$name | string | column name |
Résultat | string | the properly quoted column name |
public quoteIndexName ( string $name ) : string | ||
$name | string | index name |
Résultat | string | the properly quoted index name |
public quoteSimpleColumnName ( string $name ) : string | ||
$name | string | column name |
Résultat | string | the properly quoted column name |
public quoteSimpleIndexName ( string $name ) : string | ||
$name | string | index name |
Résultat | string | the properly quoted index name |
public quoteValue ( string $str ) : string | ||
$str | string | string to be quoted |
Résultat | string | the properly quoted string |
public refresh ( ) |
protected resolveIndexNames ( |
||
$index | the index metadata object | |
$name | string | the index name |
protected resolveIndexType ( |
||
$index | the index metadata object |