ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:reference_index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:reference:reference_index [2021/03/12 03:31] – [Establishing Connections] mnewnhamv5:reference:reference_index [2026/02/06 22:06] (current) – [Table] mnewnham
Line 6: Line 6:
 See the [[v5:database:feature_comparison|Feature Comparison Matrix]] See the [[v5:database:feature_comparison|Feature Comparison Matrix]]
 ===== Variables ===== ===== Variables =====
-| [[v5:reference:adodb_countrecs|$ADODB_COUNTRECS]]         | In database drivers that do not support native recordset counting, controls whether to emulate the functionality                       +| [[v5:reference:adodb_countrecs|$ADODB_COUNTRECS]]                | In database drivers that do not support native recordset counting, controls whether to emulate the functionality                                     
-| [[v5:reference:adodb_ansi_padding_off|$ADODB_ANSI_PADDING_OFF]]  | Determines whether to right trim CHAR fields                                                                                           +| [[v5:reference:adodb_ansi_padding_off|$ADODB_ANSI_PADDING_OFF]]  | Determines whether to right trim CHAR fields                                                                                                         
-| [[v5:reference:adodb_cache_dir|$ADODB_CACHE_DIR]]         | If using recordset caching, determines the directory holding the cached data                                                           +| [[v5:reference:adodb_cache_dir|$ADODB_CACHE_DIR]]                | If using recordset caching, determines the directory holding the cached data                                                                         
-| [[v5:reference:adodb_cache_class|$ADODB_CACHE_CLASS]]       | If using recordset caching, specifies a class for cached recordset handling                                                            +| [[v5:reference:adodb_cache_class|$ADODB_CACHE_CLASS]]            | If using recordset caching, specifies a class for cached recordset handling                                                                          
-| [[v5:datetime:adodb_date_locale|$ADODB_DATE_LOCALE]]        | Sets a default date and time format for the ADOdb date/time library                                                                    +| [[v5:datetime:adodb_date_locale|$ADODB_DATE_LOCALE]]             | Sets a default date and time format for the ADOdb date/time library                                                                                  
-| [[v5:reference:adodb_force_type|$ADODB_FORCE_TYPE]]        | Changes the behavior of empty and null field handling when updating or creating records                                                +| [[v5:reference:adodb_force_type|$ADODB_FORCE_TYPE]]              | Changes the behavior of empty and null field handling when updating or creating records                                                              
-| [[v5:reference:adodb_fetch_mode|$ADODB_FETCH_MODE]]        | Sets the global array type (numeric or associative) for returned recordsets                                                            +| [[v5:reference:adodb_fetch_mode|$ADODB_FETCH_MODE]]              | Sets the global array type (numeric or associative) for returned recordsets                                                                          
-| [[v5:reference:adodb_getone_eof|$ADODB_GETONE_EOF]]        | Sets the returned value if a valid SQL statement does not match any record when the method [[v5:reference:connection:getone|getOne()]] is executed. +| [[v5:reference:adodb_getone_eof|$ADODB_GETONE_EOF]]              | Sets the returned value if a valid SQL statement does not match any record when the method [[v5:reference:connection:getone|getOne()]] is executed. 
-| [[v5:reference:adodb_lang|$ADODB_LANG]]              | Sets the language for error messages                                                                                                   +| [[v5:reference:adodb_lang|$ADODB_LANG]]                          | Sets the language for error messages                                                                                                                 
-| [[v5:reference:adodb_quote_fieldnames|$ADODB_QUOTE_FIELDNAMES]]  | Quotes, and optionally controls the casing of field name in constructed SQL statements                                                 |+| [[v5:reference:adodb_quote_fieldnames|$ADODB_QUOTE_FIELDNAMES]]  | Quotes, and optionally controls the casing of field name in constructed SQL statements                                                               | 
 +| [[v5:reference:adodb_compat_fetch|$ADODB_COMPAT_FETCH]]          | Determines the behavior of a record buffer if the pointer is advanced beyond EOF                                                                     | 
 +| [[v5:reference:connection:version#adodb_vers|$ADODB_vers]]       | ADOdb version and release date                                                                                                                       |
  
 ===== Constants ===== ===== Constants =====
Line 65: Line 67:
 ==== Prepared Statements ==== ==== Prepared Statements ====
  
-| [[v5:reference:connection:inparameter|inParameter()]]    | Sets an input parameter to a stored procedure                    | +| [[v5:reference:connection:inparameter|inParameter()]]            | Sets an input parameter to a stored procedure                    | 
-| [[v5:reference:connection:outparameter|outParameter()]]  | Receives an output parameter from a stored procedure             | +| [[v5:reference:connection:outparameter|outParameter()]]          | Receives an output parameter from a stored procedure             | 
-| [[v5:reference:connection:param|param()]]                | Returns a database specific parameter placeholder                | +| [[v5:reference:connection:param|param()]]                        | Returns a database specific parameter placeholder                | 
-| [[v5:reference:connection:prepare|prepare()]]            | Prepares an SQL statement and returns a handle to use            | +| [[v5:reference:connection:prepare|prepare()]]                    | Prepares an SQL statement and returns a handle to use            | 
-| [[v5:reference:connection:preparesp|prepareSp()]]        | Access a stored procedure and returns a handle to the procedure  |+| [[v5:reference:connection:preparesp|prepareSp()]]                | Access a stored procedure and returns a handle to the procedure  
 +| [[v5:reference:connection:releasestatement|releaseStatement()]]  | Releases a previously prepared statement                         |
  
  
Line 80: Line 83:
 | [[v5:reference:connection:getinsertsql|getInsertSQL()]]  | Creates a database-specific SQL INSERT statement based on supplied parameters   | | [[v5:reference:connection:getinsertsql|getInsertSQL()]]  | Creates a database-specific SQL INSERT statement based on supplied parameters   |
 | [[v5:reference:connection:ifnull|ifNull()]]              | Replaces a null value with a specified replacement                              | | [[v5:reference:connection:ifnull|ifNull()]]              | Replaces a null value with a specified replacement                              |
 +| [[v5:reference:connection:length|length()]]              | Creates database-specific SQL to obtain the length of data in a column          |
 | [[v5:reference:connection:qstr|quote()]]                 | Is a pseudonym for the function [[v5:reference:connection:qstr]]                | | [[v5:reference:connection:qstr|quote()]]                 | Is a pseudonym for the function [[v5:reference:connection:qstr]]                |
 | [[v5:reference:connection:qstr|qStr()]]                  | Appropriately quotes strings with ' characters for insertion into the database  | | [[v5:reference:connection:qstr|qStr()]]                  | Appropriately quotes strings with ' characters for insertion into the database  |
Line 117: Line 121:
  
 ==== Manipulating Dates & Times ==== ==== Manipulating Dates & Times ====
-| [[v5:reference:connection:binddate|bindDate()]]               | Creates a portable date field, for use in bind statements        | +^Function^Description^Returns^ 
-| [[v5:reference:connection:bindtimestamp|bindTimeStamp()]]     | Creates a portable timestamp field, for use in bind statements   | +| [[v5:reference:connection:binddate|bindDate()]]               | Creates a portable date field, for use in bind statements        |DateTime
-| [[v5:reference:connection:dbdate|dbDate()]]                   Creates portable date field, for use in SQL statements         | +| [[v5:reference:connection:bindtimestamp|bindTimeStamp()]]     | Creates a portable timestamp field, for use in bind statements   |
-| [[v5:reference:connection:dbtimestamp|dbTimeStamp()]]         Creates portable timestamp field, for use in SQL statements    | +| [[v5:reference:connection:dbdate|dbDate()]]                   Returns a date formatted based on the setDateLocae() setting         |Date
-| [[v5:reference:connection:offsetdate|offsetDate()]]           | Creates a portable date offset field, for use in SQL statements  +| [[v5:reference:connection:dbtimestamp|dbTimeStamp()]]         Returns date/time formatted based on the setDateLocale() setting    DateTime|
-| [[v5:reference:connection:setdatelocale|setDateLocale()]]                   Changes the SQL connection to a specified Locale                 +| [[v5:reference:connection:offsetdate|offsetDate()]]           | Creates a statement to calculate a past or future date |Embeddable SQL| 
-| [[v5:reference:connection:sqldate|sqlDate()]]            | Returns a portably-formatted date string from a timestamp database column       | +| [[v5:reference:connection:setdatelocale|setDateLocale()]]     Sets a specified Date Format for a Locale              |Embeddable SQL
-| [[v5:reference:connection:unixdate|unixDate()]]               | Uses the database connection to create date strings              | +| [[v5:reference:connection:sqldate|sqlDate()]]            | Returns a portably-formatted date string from a timestamp database column       |Embeddable SQL
-| [[v5:reference:connection:unixtimestamp|unixTimeStamp()]]     | Uses the database connection to create date/time strings         |+| [[v5:reference:connection:unixdate|unixDate()]]               | Uses ADODb to create date strings without times              |DateTime
 +| [[v5:reference:connection:unixtimestamp|unixTimeStamp()]]     | Uses ADOdb to create date/time strings         |DateTime| 
 +| [[v5:reference:connection:day|day()]]            | Returns portable shortcut SQL to extract the day portion of a date  |Embeddable SQL| 
 +| [[v5:reference:connection:month|month()]]            | Returns portable shortcut SQL to extract the month portion of a date  |Embeddable SQL| 
 +| [[v5:reference:connection:year|year()]]            | Returns portable shortcut SQL to extract the year portion of a date  |Embeddable SQL|
 ==== Row Management ==== ==== Row Management ====
 |[[v5:reference:connection:affected_rows|affected_rows()]]|Returns the number of rows affected by the last operation| |[[v5:reference:connection:affected_rows|affected_rows()]]|Returns the number of rows affected by the last operation|
Line 146: Line 154:
 | [[v5:reference:connection:fnexecute|fnExecute and fnCacheExecute]]     || A reference to a function that overrides the execute function  | | [[v5:reference:connection:fnexecute|fnExecute and fnCacheExecute]]     || A reference to a function that overrides the execute function  |
    
 +==== Information ====
  
-====== The Recordset Object ====== +| [[v5:reference:connection:version|version()]] | ADOdb version number | 
 +| [[v5:reference:connection:serverinfo|serverInfo()]] | Database server version and information | 
 + 
 + 
 +===== The Recordset Object =====
 ==== Returns one field ==== ==== Returns one field ====
 |[[v5:reference:recordset:fields|fields()]]|Returns a single field in a single row of the current recordset| |[[v5:reference:recordset:fields|fields()]]|Returns a single field in a single row of the current recordset|
v5/reference/reference_index.1615516301.txt.gz · Last modified: by mnewnham