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 [2020/01/11 22:47] – [Table] mnewnhamv5:reference:connection:adonewconnection [2020/01/11 22:50] – [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              ^ Driver             ^ 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              ibase              | string                                                             || When using the ibase driver, allows setting a role                                    | +charpage          ado                | string                                                                                       || Undocumented option                                                  
-| dialect           | ibase              | integer                                                            || Undocumented option                                                                   +clientflags       mysql              | string                                                                                      | Sets a list of client flags (obsolete for mysql driver)              | 
-charset           ibase              | string   [[v5:reference:connection:setcharset|setCharSet()]]      | Sets a character set (obsolete, replaced by [[v5:connection:setConnectionParameter]] +| port              | mysqli, postgres9  | int                                                                                          || Sets the connection port                                             
-| buffers           | ibase              | string                                                             || Undocumented option                                                                   | +| socket            | mysqli             | string                                                                                      | Sets the connection socket                                           
-| fetchmode         | ibase              | int      | [[v5:reference:connection:setfetchmode|setFetchMode()]]  | Sets the fetch mode                                                                   | +| nls_date_format   | oci8               | string                                                                                       || Set date format                                                      
-| charpage          | ado                | string                                                             || Undocumented option                                                                   | +| cachesecs                            | int                                                                                          || Sets the number of cache seconds                                     
-| clientflags       | mysqli             | string                                                             || Undocumented option                                                                   +| memCache          |                    | false [[v5:userguide:memcached|memcache]]                                                    || Enables memcache library for caching                                 
-| port              | mysqli, postgres9  | int                                                                || Sets the connection port                                                              +| memCacheHost      |                    | array [[v5:userguide:memcached|memcache]]                                                    || Array of one or more memcached servers                               
-| socket            | mysqli             | string                                                             || Sets the connection socket                                                            +| memCachePort      |                    | int [[v5:userguide:memcached|memcache]]                                                      || Optional alternative port to connect to memcache server(s)           
-| nls_date_format   | oci8               | string                                                             || Set date format                                                                       +| memCacheCompress  |                    | false [[v5:userguide:memcached|memcache]]                                                    || Enables memcache compression (not supported with memcached library)  |
-| cachesecs                            | int                                                                || Sets the number of cache seconds                                                      +
-| memCache          |                    | false    [[v5:userguide:memcached|memcache]]                      | Enables memcache library for caching                                                  +
-| 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)                            +
-| 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