ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:adonewconnection

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
Next revisionBoth sides next revision
v5:reference:connection:adonewconnection [2017/04/15 18:41] mnewnhamv5:reference:connection:adonewconnection [2020/01/11 22:47] – [Table] mnewnham
Line 52: Line 52:
 The following additional parameter can be added to the DSN connection string. Some of the parameters only work with specific drivers. The following additional parameter can be added to the DSN connection string. Some of the parameters only work with specific drivers.
  
-^ Code             ^ Value    ^ Parameter                                                ^ Description                                         +^ Code              ^ Driver             ^ Value    ^ Parameter                                                ^ Description                                                                           
-| new              | true     | [[v5:reference:connection:nconnect|nConnect()]]          | Forces a new connection                             +| new               |                    | true     | [[v5:reference:connection:nconnect|nConnect()]]          | Forces a new connection                                                               
-| persist          | true     | [[v5:reference:connection:pconnect|pConnect()]]          | Creates a persistent connection                     +| persist           |                    | true     | [[v5:reference:connection:pconnect|pConnect()]]          | Creates a persistent connection                                                       
-| persistent       | true     | [[v5:reference:connection:pconnect|pConnect()]]          | Creates a persistent connection                     +| persistent                           | true     | [[v5:reference:connection:pconnect|pConnect()]]          | Creates a persistent connection                                                       
-| debug            | true     | [[v5:userguide:debug|debug]]                             | Enables debug mode                                  +| debug             |                    | true     | [[v5:userguide:debug|debug]]                             | Enables debug mode                                                                    
-| role             | string                                                             || When using the ibase driver, allows setting a role  +| role              | ibase              | string                                                             || When using the ibase driver, allows setting a role                                    
-| dialect          | integer                                                            || Undocumented option                                 +| dialect           | ibase              | integer                                                            || Undocumented option                                                                   
-| charset          | string   | [[v5:reference:connection:setcharset|setCharSet()]]      | Sets a character set                                +| charset           | ibase              | string   | [[v5:reference:connection:setcharset|setCharSet()]]      | Sets a character set (obsolete, replaced by [[v5:connection:setConnectionParameter]]  
-| buffers          | string                                                             || Undocumented option                                 +| buffers           | ibase              | string                                                             || Undocumented option                                                                   
-| fetchmode        | int      | [[v5:reference:connection:setfetchmode|setFetchMode()]]  | Sets the fetch mode                                 +| fetchmode         | ibase              | int      | [[v5:reference:connection:setfetchmode|setFetchMode()]]  | Sets the fetch mode                                                                   
-| charpage         | string                                                             || Undocumented option                                 +| charpage          | ado                | string                                                             || Undocumented option                                                                   
-| clientflags      | string                                                             || Undocumented option                                 +| clientflags       | mysqli             | string                                                             || Undocumented option                                                                   
-| port             | int                                                                || Sets the connection port                            +| port              | mysqli, postgres9  | int                                                                || Sets the connection port                                                              
-| socket           int                                                                || Sets the connection socket                          +| socket            mysqli             | string                                                             || Sets the connection socket                                                            
-| nls_date_format  | string                                                             || Set date format                                     +| nls_date_format   | oci8               | string                                                             || Set date format                                                                       
-| cachesecs        | int                                                                || Sets the number of cache seconds                    +| cachesecs         |                    | int                                                                || Sets the number of cache seconds                                                      
-| memCache         | false    | [[v5:userguide:memcached|memcache]]                     | Enables memcache library for caching                                +| memCache                             | false    | [[v5:userguide:memcached|memcache]]                      | Enables memcache library for caching                                                  
-| memCacheHost     | array    | [[v5:userguide:memcached|memcache]]                     | Array of one or more memcached servers                              +| memCacheHost                         | array    | [[v5:userguide:memcached|memcache]]                      | Array of one or more memcached servers                                                
-| memCachePort     | int      | [[v5:userguide:memcached|memcache]]                     | Optional alternative port to connect to memcache server(s)          +| memCachePort                         | int      | [[v5:userguide:memcached|memcache]]                      | Optional alternative port to connect to memcache server(s)                            
-| memCacheCompress | false    | [[v5:userguide:memcached|memcache]]                     | Enables memcache compression (not supported with memcached library) |+| memCacheCompress                     | false    | [[v5:userguide:memcached|memcache]]                      | Enables memcache compression (not supported with memcached library)                   |
  
 ===== Error Codes ===== ===== Error Codes =====
v5/reference/connection/adonewconnection.txt · Last modified: 2020/12/08 10:39 by peterdd