Свойство | Type | Description | |
---|---|---|---|
$qb_aliased_tables | array | QB aliased tables list | |
$qb_cache_exists | array | QB Cache exists list | |
$qb_cache_from | array | QB Cache FROM data | |
$qb_cache_groupby | array | QB Cache GROUP BY data | |
$qb_cache_having | array | QB Cache HAVING data | |
$qb_cache_join | array | QB Cache JOIN data | |
$qb_cache_no_escape | array | QB Cache No Escape data | |
$qb_cache_orderby | array | QB Cache ORDER BY data | |
$qb_cache_select | array | QB Cache SELECT data | |
$qb_cache_set | array | QB Cache data sets | |
$qb_cache_where | array | QB Cache WHERE data | |
$qb_caching | boolean | QB Caching flag | |
$qb_distinct | boolean | QB DISTINCT flag | |
$qb_from | array | QB FROM data | |
$qb_groupby | array | QB GROUP BY data | |
$qb_having | array | QB HAVING data | |
$qb_join | array | QB JOIN data | |
$qb_keys | array | QB keys | |
$qb_limit | integer | QB LIMIT data | |
$qb_no_escape | array | QB No Escape data | |
$qb_offset | integer | QB OFFSET data | |
$qb_orderby | array | QB ORDER BY data | |
$qb_select | array | QB SELECT data | |
$qb_set | array | QB data sets | |
$qb_where | array | QB WHERE data | |
$qb_where_group_count | integer | QB WHERE group count | |
$qb_where_group_started | boolean | QB WHERE group started flag | |
$reset_delete_data | boolean | Reset DELETE data flag | |
$return_delete_sql | boolean | Return DELETE SQL flag |
Méthode | Description | |
---|---|---|
count_all_results ( $table = '', $reset = TRUE ) : integer | "Count All Results" query | |
dbprefix ( $table = '' ) : string | DB Prefix | |
delete ( $table = '', $where = '', $limit = NULL, $reset_data = TRUE ) : mixed | Delete | |
distinct ( boolean $val = TRUE ) : CI_DB_query_builder | DISTINCT | |
empty_table ( $table = '' ) : boolean | Empty Table | |
flush_cache ( ) : CI_DB_query_builder | Flush Cache | |
from ( mixed $from ) : CI_DB_query_builder | From | |
get ( $table = '', $limit = NULL, $offset = NULL ) : CI_DB_result | Get | |
get_compiled_delete ( $table = '', $reset = TRUE ) : string | Get DELETE query string | |
get_compiled_insert ( $table = '', $reset = TRUE ) : string | Get INSERT query string | |
get_compiled_select ( $table = '', $reset = TRUE ) : string | Get SELECT query string | |
get_compiled_update ( $table = '', $reset = TRUE ) : string | Get UPDATE query string | |
get_where ( string $table = '', string $where = NULL, integer $limit = NULL, integer $offset = NULL ) : CI_DB_result | Get_Where | |
group_by ( string $by, boolean $escape = NULL ) : CI_DB_query_builder | GROUP BY | |
group_end ( ) : CI_DB_query_builder | Ends a query group | |
group_start ( string $not = '', string $type = 'AND ' ) : CI_DB_query_builder | Starts a query group. | |
having ( string $key, string $value = NULL, boolean $escape = NULL ) : CI_DB_query_builder | HAVING | |
insert ( $table = '', $set = NULL, boolean $escape = NULL ) : boolean | Insert | |
insert_batch ( string $table, array $set = NULL, boolean $escape = NULL, $batch_size = 100 ) : integer | Insert_Batch | |
join ( $table, $cond, $type = '', $escape = NULL ) : CI_DB_query_builder | JOIN | |
like ( mixed $field, string $match = '', string $side = 'both', boolean $escape = NULL ) : CI_DB_query_builder | LIKE | |
limit ( integer $value, integer $offset ) : CI_DB_query_builder | LIMIT | |
not_group_start ( ) : CI_DB_query_builder | Starts a query group, but NOTs the group | |
not_like ( mixed $field, string $match = '', string $side = 'both', boolean $escape = NULL ) : CI_DB_query_builder | NOT LIKE | |
offset ( integer $offset ) : CI_DB_query_builder | Sets the OFFSET value | |
or_group_start ( ) : CI_DB_query_builder | Starts a query group, but ORs the group | |
or_having ( string $key, string $value = NULL, boolean $escape = NULL ) : CI_DB_query_builder | OR HAVING | |
or_like ( mixed $field, string $match = '', string $side = 'both', boolean $escape = NULL ) : CI_DB_query_builder | OR LIKE | |
or_not_group_start ( ) : CI_DB_query_builder | Starts a query group, but OR NOTs the group | |
or_not_like ( mixed $field, string $match = '', string $side = 'both', boolean $escape = NULL ) : CI_DB_query_builder | OR NOT LIKE | |
or_where ( $key, $value = NULL, $escape = NULL ) : CI_DB_query_builder | OR WHERE | |
or_where_in ( string $key = NULL, array $values = NULL, boolean $escape = NULL ) : CI_DB_query_builder | OR WHERE IN | |
or_where_not_in ( string $key = NULL, array $values = NULL, boolean $escape = NULL ) : CI_DB_query_builder | OR WHERE NOT IN | |
order_by ( string $orderby, string $direction = '', boolean $escape = NULL ) : CI_DB_query_builder | ORDER BY | |
replace ( $table = '', $set = NULL ) : boolean | Replace | |
reset_query ( ) : CI_DB_query_builder | Reset Query Builder values. | |
select ( $select = '*', $escape = NULL ) : CI_DB_query_builder | Select | |
select_avg ( $select = '', $alias = '' ) : CI_DB_query_builder | Select Average | |
select_max ( $select = '', $alias = '' ) : CI_DB_query_builder | Select Max | |
select_min ( $select = '', $alias = '' ) : CI_DB_query_builder | Select Min | |
select_sum ( $select = '', $alias = '' ) : CI_DB_query_builder | Select Sum | |
set ( $key, $value = '', $escape = NULL ) : CI_DB_query_builder | The "set" function. | |
set_dbprefix ( $prefix = '' ) : string | Set DB Prefix | |
set_insert_batch ( $key, $value = '', $escape = NULL ) : CI_DB_query_builder | The "set_insert_batch" function. Allows key/value pairs to be set for batch inserts | |
set_update_batch ( $key, $index = '', $escape = NULL ) : CI_DB_query_builder | The "set_update_batch" function. Allows key/value pairs to be set for batch updating | |
start_cache ( ) : CI_DB_query_builder | Start Cache | |
stop_cache ( ) : CI_DB_query_builder | Stop Cache | |
truncate ( $table = '' ) : boolean | Truncate | |
update ( string $table = '', array $set = NULL, mixed $where = NULL, integer $limit = NULL ) : boolean | UPDATE | |
update_batch ( $table, $set = NULL, $index = NULL, $batch_size = 100 ) : integer | Update_Batch | |
where ( $key, $value = NULL, $escape = NULL ) : CI_DB_query_builder | WHERE | |
where_in ( string $key = NULL, array $values = NULL, boolean $escape = NULL ) : CI_DB_query_builder | WHERE IN | |
where_not_in ( string $key = NULL, array $values = NULL, boolean $escape = NULL ) : CI_DB_query_builder | WHERE NOT IN |
Méthode | Description | |
---|---|---|
_compile_group_by ( ) : string | Compile GROUP BY | |
_compile_order_by ( ) : string | Compile ORDER BY | |
_compile_select ( boolean $select_override = FALSE ) : string | Compile the SELECT statement | |
_compile_wh ( string $qb_key ) : string | Compile WHERE, HAVING statements | |
_create_alias_from_table ( string $item ) : string | Determines the alias name based on the table | |
_delete ( $table ) : string | Delete statement | |
_from_tables ( ) : string | FROM tables | |
_group_get_type ( string $type ) : string | Group_get_type | |
_insert_batch ( string $table, array $keys, array $values ) : string | Insert batch statement | |
_is_literal ( string $str ) : boolean | Is literal | |
_like ( mixed $field, string $match = '', string $type = 'AND ', string $side = 'both', string $not = '', boolean $escape = NULL ) : CI_DB_query_builder | Internal LIKE | |
_limit ( string $sql ) : string | LIMIT string | |
_max_min_avg_sum ( string $select = '', string $alias = '', string $type = 'MAX' ) : CI_DB_query_builder | SELECT [MAX|MIN|AVG|SUM]() | |
_merge_cache ( ) : void | Merge Cache | |
_object_to_array ( $object ) : array | Object to Array | |
_object_to_array_batch ( $object ) : array | Object to Array | |
_replace ( $table, $keys, $values ) : string | Replace statement | |
_reset_run ( $qb_reset_items ) : void | Resets the query builder values. Called by the get() function | |
_reset_select ( ) : void | Resets the query builder values. Called by the get() function | |
_reset_write ( ) : void | Resets the query builder "write" values. | |
_track_aliases ( $table ) : string | Track Aliases | |
_truncate ( $table ) : string | Truncate statement | |
_update_batch ( string $table, array $values, string $index ) : string | Update_Batch statement | |
_validate_insert ( $table = '' ) : string | Validate Insert | |
_validate_update ( $table ) : boolean | Validate Update | |
_wh ( string $qb_key, mixed $key, mixed $value = NULL, string $type = 'AND ', boolean $escape = NULL ) : CI_DB_query_builder | WHERE, HAVING | |
_where_in ( string $key = NULL, array $values = NULL, boolean $not = FALSE, string $type = 'AND ', boolean $escape = NULL ) : CI_DB_query_builder | Internal WHERE IN |
protected _compile_group_by ( ) : string | ||
Résultat | string | SQL statement |
protected _compile_order_by ( ) : string | ||
Résultat | string | SQL statement |
protected _compile_select ( boolean $select_override = FALSE ) : string | ||
$select_override | boolean | |
Résultat | string |
protected _compile_wh ( string $qb_key ) : string | ||
$qb_key | string | 'qb_where' or 'qb_having' |
Résultat | string | SQL statement |
protected _create_alias_from_table ( string $item ) : string | ||
$item | string | |
Résultat | string |
protected _from_tables ( ) : string | ||
Résultat | string |
protected _group_get_type ( string $type ) : string | ||
$type | string | |
Résultat | string |
protected _is_literal ( string $str ) : boolean | ||
$str | string | |
Résultat | boolean |
protected _merge_cache ( ) : void | ||
Résultat | void |
protected _object_to_array ( $object ) : array | ||
Résultat | array |
protected _object_to_array_batch ( $object ) : array | ||
Résultat | array |
protected _reset_run ( $qb_reset_items ) : void | ||
Résultat | void |
protected _reset_select ( ) : void | ||
Résultat | void |
protected _reset_write ( ) : void | ||
Résultat | void |
protected _track_aliases ( $table ) : string | ||
Résultat | string |
protected _validate_insert ( $table = '' ) : string | ||
Résultat | string |
protected _validate_update ( $table ) : boolean | ||
Résultat | boolean |
protected _where_in ( string $key = NULL, array $values = NULL, boolean $not = FALSE, string $type = 'AND ', boolean $escape = NULL ) : CI_DB_query_builder | ||
$key | string | The field to search |
$values | array | The values searched on |
$not | boolean | If the statement would be IN or NOT IN |
$type | string | |
$escape | boolean | |
Résultat | CI_DB_query_builder |
public count_all_results ( $table = '', $reset = TRUE ) : integer | ||
Résultat | integer |
public empty_table ( $table = '' ) : boolean | ||
Résultat | boolean | TRUE on success, FALSE on failure |
public flush_cache ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public get ( $table = '', $limit = NULL, $offset = NULL ) : CI_DB_result | ||
Résultat | CI_DB_result |
public get_compiled_delete ( $table = '', $reset = TRUE ) : string | ||
Résultat | string |
public get_compiled_insert ( $table = '', $reset = TRUE ) : string | ||
Résultat | string |
public get_compiled_select ( $table = '', $reset = TRUE ) : string | ||
Résultat | string |
public get_compiled_update ( $table = '', $reset = TRUE ) : string | ||
Résultat | string |
public group_end ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public group_start ( string $not = '', string $type = 'AND ' ) : CI_DB_query_builder | ||
$not | string | (Internal use only) |
$type | string | (Internal use only) |
Résultat | CI_DB_query_builder |
public insert_batch ( string $table, array $set = NULL, boolean $escape = NULL, $batch_size = 100 ) : integer | ||
$table | string | Table to insert into |
$set | array | An associative array of insert values |
$escape | boolean | Whether to escape values and identifiers |
Résultat | integer | Number of rows inserted or FALSE on failure |
public join ( $table, $cond, $type = '', $escape = NULL ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public not_group_start ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public or_group_start ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public or_not_group_start ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public or_where ( $key, $value = NULL, $escape = NULL ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public reset_query ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public select ( $select = '*', $escape = NULL ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public select_avg ( $select = '', $alias = '' ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public select_max ( $select = '', $alias = '' ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public select_min ( $select = '', $alias = '' ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public select_sum ( $select = '', $alias = '' ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public set ( $key, $value = '', $escape = NULL ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public set_dbprefix ( $prefix = '' ) : string | ||
Résultat | string |
public set_insert_batch ( $key, $value = '', $escape = NULL ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public set_update_batch ( $key, $index = '', $escape = NULL ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public start_cache ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public stop_cache ( ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
public update_batch ( $table, $set = NULL, $index = NULL, $batch_size = 100 ) : integer | ||
Résultat | integer | number of rows affected or FALSE on failure |
public where ( $key, $value = NULL, $escape = NULL ) : CI_DB_query_builder | ||
Résultat | CI_DB_query_builder |
protected array $qb_aliased_tables | ||
Résultat | array |
protected array $qb_cache_exists | ||
Résultat | array |
protected array $qb_cache_from | ||
Résultat | array |
protected array $qb_cache_groupby | ||
Résultat | array |
protected array $qb_cache_having | ||
Résultat | array |
protected array $qb_cache_join | ||
Résultat | array |
protected array $qb_cache_no_escape | ||
Résultat | array |
protected array $qb_cache_orderby | ||
Résultat | array |
protected array $qb_cache_select | ||
Résultat | array |
protected array $qb_cache_where | ||
Résultat | array |
protected int $qb_where_group_count | ||
Résultat | integer |
protected bool $qb_where_group_started | ||
Résultat | boolean |
protected bool $reset_delete_data | ||
Résultat | boolean |
protected bool $return_delete_sql | ||
Résultat | boolean |