v5:dictionary:setactualtype
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
v5:dictionary:setactualtype [2017/05/14 00:22] – mnewnham | v5:dictionary:setactualtype [2017/05/15 16:46] – [Usage] adjust formatting, fix typo dregad | ||
---|---|---|---|
Line 16: | Line 16: | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | The method '' | + | The method '' |
If the method is used to create a new '' | If the method is used to create a new '' | ||
Line 22: | Line 22: | ||
A connection to a data dictionary object is required, but a database connection is not. | A connection to a data dictionary object is required, but a database connection is not. | ||
===== Usage ==== | ===== Usage ==== | ||
- | In this example we want to change the behavior of the mssqlnative driver, so that instead of the default '' | + | In this example we want to change the behavior of the mssqlnative driver, so that instead of the default '' |
<code php> | <code php> | ||
$db = newAdoConnection(' | $db = newAdoConnection(' | ||
Line 29: | Line 29: | ||
$dict-> | $dict-> | ||
</ | </ | ||
- | In the second example, we will create a new actual types so that we can use the adodb dictionary function to create tables containing geospatial information. | + | In the second example, we will create a new actual types so that we can use the ADOdb dictionary function to create tables containing geospatial information. |
<code php> | <code php> | ||
- | $db = newAdoConnection(' | + | $db = newAdoConnection(' |
$dict = NewDataDictionary($db); | $dict = NewDataDictionary($db); | ||
Line 50: | Line 50: | ||
Array | Array | ||
( | ( | ||
- | [0] => ALTER TABLE POSITION ADD GEODATA | + | [0] => ALTER TABLE POSITION ADD GEODATA |
[1] => ALTER TABLE POSITION ADD POINTDATA POINT | [1] => ALTER TABLE POSITION ADD POINTDATA POINT | ||
) | ) |
v5/dictionary/setactualtype.txt · Last modified: 2017/07/22 18:39 by mnewnham