프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$db | the Sphinx connection | ||
$typeMap | mapping from physical column types (keys) to abstract column types (values) |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 |
리턴 |
public createQueryBuilder ( ) : |
||
리턴 | query builder instance |
protected findColumns ( |
||
$index | the index metadata | |
리턴 | boolean | whether the index exists in the database |
protected findIndexes ( ) : array | ||
리턴 | array | all index names in the Sphinx. |
protected getCacheKey ( string $name ) : mixed | ||
$name | string | the index name |
리턴 | mixed | the cache key |
protected getCacheTag ( ) : string | ||
리턴 | string | the cache tag name |
protected getColumnPhpType ( |
||
$column | the column schema information | |
리턴 | 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. |
리턴 | 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. |
리턴 | 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. |
리턴 | 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. |
리턴 | 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 |
리턴 | integer | the PDO type |
public getQueryBuilder ( ) : |
||
리턴 | the query builder for this connection. |
public getRawIndexName ( string $name ) : string | ||
$name | string | the index name to be converted |
리턴 | string | the real name of the given index name |
protected initIndexesInfo ( ) |
public isReadQuery ( string $sql ) : boolean | ||
$sql | string | the SQL statement |
리턴 | boolean | whether a SQL statement is for read purpose. |
protected loadColumnSchema ( array $info ) : |
||
$info | array | column information |
리턴 | the column schema object |
protected loadIndexSchema ( string $name ) : |
||
$name | string | index name |
리턴 | driver dependent index metadata. `null` - if the index does not exist. |
public quoteColumnName ( string $name ) : string | ||
$name | string | column name |
리턴 | string | the properly quoted column name |
public quoteIndexName ( string $name ) : string | ||
$name | string | index name |
리턴 | string | the properly quoted index name |
public quoteSimpleColumnName ( string $name ) : string | ||
$name | string | column name |
리턴 | string | the properly quoted column name |
public quoteSimpleIndexName ( string $name ) : string | ||
$name | string | index name |
리턴 | string | the properly quoted index name |
public quoteValue ( string $str ) : string | ||
$str | string | string to be quoted |
리턴 | 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 |