oracle
class oracle extends driver
Oracle Database Abstraction Layer
Constants
LOGICAL_OP |
|
STATEMENTS |
|
LEFT_STMT |
|
COMPARE_OP |
|
RIGHT_STMT |
|
SUBQUERY_OP |
|
SUBQUERY_SELECT_TYPE |
|
SUBQUERY_BUILD |
|
Properties
$db_connect_id | from driver | ||
$query_result | from driver | ||
$return_on_error | from driver | ||
$transaction | from driver | ||
$sql_time | from driver | ||
$num_queries | from driver | ||
$open_queries | from driver | ||
$curtime | from driver | ||
$query_hold | from driver | ||
$html_hold | from driver | ||
$sql_report | from driver | ||
$persistency | from driver | ||
$user | from driver | ||
$server | from driver | ||
$dbname | from driver | ||
$sql_error_triggered | from driver | ||
$sql_error_sql | from driver | ||
$sql_error_returned | from driver | ||
$transactions | from driver | ||
$multi_insert | from driver | ||
$sql_layer | Current sql layer |
from driver | |
$any_char | Wildcards for matching any (%) or exactly one (_) character within LIKE expressions |
from driver | |
$one_char | from driver | ||
$sql_server_version | Exact version of the DBAL, directly queried |
from driver | |
protected bool | $debug_load_time | from driver | |
protected bool | $debug_sql_explain | from driver | |
$last_query_text | |||
$connect_error |
Methods
Wildcards for matching exactly one (_) character within LIKE expressions
Return number of sql queries and cached sql queries used
Build LIMIT query
Seek to given row number
Fetch field if rownum is false, the current row is used, else it is pointing to the row (zero-based)
Correctly adjust LIKE expression for special characters Some DBMS are handling them in a different way
Correctly adjust NOT LIKE expression for special characters Some DBMS are handling them in a different way
Build a case expression
Returns whether results of a query need to be buffered to run a transaction while iterating over them.
Build sql statement from an array
Build IN or NOT IN sql comparison string, uses <> or = on single element arrays to improve comparison speed
Run binary AND operator on DB column.
Run binary OR operator on DB column.
Returns SQL string to cast a string expression to an int.
Returns SQL string to cast an integer expression to a string.
Run LOWER() on DB column of type text (i.e. neither varchar nor char).
Run more than one insert statement.
Build sql statement from array for select and select distinct statements
Gets the estimated number of rows in a specified table.
Gets the exact number of rows in a specified table.
Connect to server
Version information about used database
Base query method
Build LIMIT query
Return number of affected rows
Fetch current row
Get last inserted id after insert statement
Free sql result
Escape string used in sql query
No description
No description
No description
Quote identifiers used in sql query
Details
in
driver at line 91
__construct()
Constructor
in
driver at line 111
set_debug_load_time(bool $value)
Set value for load_time debug parameter
in
driver at line 119
set_debug_sql_explain(bool $value)
Set value for sql_explain debug parameter
in
driver at line 127
string
get_sql_layer()
Gets the name of the sql layer.
in
driver at line 135
string
get_db_name()
Gets the name of the database.
in
driver at line 143
string
get_any_char()
Wildcards for matching any (%) character within LIKE expressions
in
driver at line 151
string
get_one_char()
Wildcards for matching exactly one (_) character within LIKE expressions
in
driver at line 159
mixed
get_db_connect_id()
Gets the connect ID.
in
driver at line 167
bool
get_sql_error_triggered()
Indicates if an error was triggered.
in
driver at line 175
string
get_sql_error_sql()
Gets the last faulty query
in
driver at line 183
bool
get_transaction()
Indicates if we are in a transaction.
in
driver at line 191
int
get_sql_time()
Gets the time spent into the queries
in
driver at line 199
array
get_sql_error_returned()
Gets the returned error.
in
driver at line 207
bool
get_multi_insert()
Indicates if multiple insertion can be used
in
driver at line 215
set_multi_insert(bool $multi_insert)
Set if multiple insertion can be used
in
driver at line 223
null
sql_return_on_error(bool $fail = false)
Return on error or display error message
in
driver at line 234
int
sql_num_queries(bool $cached = false)
Return number of sql queries and cached sql queries used
in
driver at line 242
null
sql_add_num_queries(bool $cached = false)
Add to query count
in
driver at line 252
mixed
sql_close()
DBAL garbage collection, close SQL connection
in
driver at line 285
mixed
sql_query_limit(string $query, int $total, int $offset = 0, int $cache_ttl = 0)
Build LIMIT query
in
driver at line 302
mixed
sql_fetchrowset(mixed $query_id = false)
Fetch all rows
at line 538
bool
sql_rowseek(mixed $rownum, mixed $query_id)
Seek to given row number
in
driver at line 368
mixed
sql_fetchfield(string $field, mixed $rownum = false, mixed $query_id = false)
Fetch field if rownum is false, the current row is used, else it is pointing to the row (zero-based)
in
driver at line 399
string
sql_like_expression(string $expression)
Correctly adjust LIKE expression for special characters Some DBMS are handling them in a different way
in
driver at line 410
string
sql_not_like_expression(string $expression)
Correctly adjust NOT LIKE expression for special characters Some DBMS are handling them in a different way
in
driver at line 421
string
sql_case(string $condition, string $action_true, mixed $action_false = false)
Build a case expression
Note: The two statements action_true and action_false must have the same data type (int, vchar, ...) in the database!
in
driver at line 433
string
sql_concatenate(string $expr1, string $expr2)
Build a concatenated expression
in
driver at line 441
bool
sql_buffer_nested_transactions()
Returns whether results of a query need to be buffered to run a transaction while iterating over them.
in
driver at line 449
mixed
sql_transaction(string $status = 'begin')
SQL Transaction
in
driver at line 516
string
sql_build_array(string $query, array $assoc_ary = false)
Build sql statement from an array
in
driver at line 564
string
sql_in_set(string $field, array $array, bool $negate = false, bool $allow_empty_set = false)
Build IN or NOT IN sql comparison string, uses <> or = on single element arrays to improve comparison speed
in
driver at line 606
string
sql_bit_and(string $column_name, int $bit, string $compare = '')
Run binary AND operator on DB column.
Results in sql statement: "{$column_name} & (1 << {$bit}) {$compare}"
in
driver at line 619
string
sql_bit_or(string $column_name, int $bit, string $compare = '')
Run binary OR operator on DB column.
in
driver at line 632
string
cast_expr_to_bigint(string $expression)
Returns SQL string to cast a string expression to an int.
in
driver at line 640
string
cast_expr_to_string(string $expression)
Returns SQL string to cast an integer expression to a string.
in
driver at line 648
string
sql_lower_text(string $column_name)
Run LOWER() on DB column of type text (i.e. neither varchar nor char).
in
driver at line 656
bool
sql_multi_insert(string $table, array $sql_ary)
Run more than one insert statement.
in
driver at line 728
string
sql_build_query(string $query, array $array)
Build sql statement from array for select and select distinct statements
Possible query values: SELECT, SELECT_DISTINCT
in
driver at line 840
protected
_process_boolean_tree_first($operations_ary)
No description
in
driver at line 852
protected
_process_boolean_tree($operations_ary)
No description
in
driver at line 967
mixed
sql_error(string $sql = '')
Display sql error page
in
driver at line 1037
mixed
sql_report(string $mode, string $query = '')
Explain queries
in
driver at line 1222
string
get_estimated_row_count(string $table_name)
Gets the estimated number of rows in a specified table.
in
driver at line 1230
string
get_row_count(string $table_name)
Gets the exact number of rows in a specified table.
at line 27
mixed
sql_connect(string $sqlserver, string $sqluser, string $sqlpassword, string $database, mixed $port = false, bool $persistency = false, bool $new_link = false)
Connect to server
at line 80
string
sql_server_info(bool $raw = false, bool $use_cache = true)
Version information about used database
at line 243
mixed
sql_query(string $query = '', int $cache_ttl = 0)
Base query method
at line 470
_sql_query_limit($query, $total, $offset = 0, $cache_ttl = 0)
Build LIMIT query
at line 482
mixed
sql_affectedrows()
Return number of affected rows
at line 490
mixed
sql_fetchrow(mixed $query_id = false)
Fetch current row
at line 575
string
sql_nextid()
Get last inserted id after insert statement
at line 613
null
sql_freeresult(mixed $query_id = false)
Free sql result
at line 639
string
sql_escape(string $msg)
Escape string used in sql query
at line 662
_sql_custom_build($stage, $data)
No description
at line 667
_sql_bit_and($column_name, $bit, $compare = '')
No description
at line 672
_sql_bit_or($column_name, $bit, $compare = '')
No description
at line 820
string
sql_quote(string $msg)
Quote identifiers used in sql query