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
Last revisionBoth sides next revision
v5:dictionary:structure:platform [2016/04/09 18:27] – created mnewnhamv5:dictionary:structure:platform [2016/04/09 18:39] 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 19: Line 19:
 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 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.
  
-===== 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.txt · Last modified: 2016/04/09 20:21 by mnewnham