ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:structure:platform

Differences

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

Link to this comparison view

Next revision
Previous revision
v5:dictionary:structure:platform [2016/04/09 18:27] – created mnewnhamv5:dictionary:structure:platform [2016/04/09 20:21] (current) – [The Data Provider] mnewnham
Line 2: Line 2:
 ~~NOTOC~~ ~~NOTOC~~
 <WRAP right box> <WRAP right box>
-**From Version 5.21.0**+**From Version 5.21.0-beta-2**
 == See Also == == See Also ==
 [[v5:dictionary:structure:introduction|Structured Schema Management]]\\ [[v5:dictionary:structure:introduction|Structured Schema Management]]\\
Line 17: Line 17:
 To identify the Data Provider for the connection type you are using, check the ADOdb page for the driver. To identify the Data Provider for the connection type you are using, check the ADOdb page for the driver.
  
-Use of the Data Provider to match a database is the optimal method, if necessary. If used, it matches all the database types that are derived from provider, so if a new database type is added to ADOdb, a data provider match will work without modification of the code.+Use of the Data Provider to match a database is the optimal method. If used, it matches all the database types that are derived from provider, so if a new database type is added to ADOdb, a data provider match will work without modification of the code.
  
-===== The Database Type ===== +===== The Driver Type ===== 
-The database type is the value used in the [[v5:reference:adonewconnection|adoNewConnection]] statement. If used, the platform will only match the provided parameter. +The database type is the value used in the [[v5:reference:connection:adonewconnection|adoNewConnection]] statement. If used, the platform will only match the provided parameter. 
  
 ===== Usage ===== ===== Usage =====
 In the following example, a table **//employees//** is to be created. The table is to be used in a portable environment, and require 2 platform specific attribute. In the following example, a table **//employees//** is to be created. The table is to be used in a portable environment, and require 2 platform specific attribute.
-  - Under **MySQL**, an engine type needs to be specified. +  - Under **MySQL**, an engine type needs to be specified. The ''mysql'' option matches the **//Data Provider//**, and will be used if the database type is ''mysqli'', ''mysqlt'', or similar
-  - Under **IBM DB2**,  a tablespace needs to be specified.+  - Under **IBM DB2**,  a tablespace needs to be specified. The ''db2'' option matches the //**Driver Type**//, and will only be used if the driver type matches the provided values.
  
 <code php> <code php>
v5/dictionary/structure/platform.1460219279.txt.gz · Last modified: 2017/04/21 11:29 (external edit)