v5:dictionary:structure:introduction
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:dictionary:structure:introduction [2016/04/09 21:35] – mnewnham | v5:dictionary:structure:introduction [2021/08/26 10:11] (current) – typos peterdd | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| [[v5: | [[v5: | ||
| [[v5: | [[v5: | ||
| - | [[v5: | + | [[v5: |
| + | [[v5: | ||
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| From ADOdb Version 5.21, A new method of managing changes to the schema has been added. This method is called // | From ADOdb Version 5.21, A new method of managing changes to the schema has been added. This method is called // | ||
| - | In Structured schema management, the elements that can be modified through the dictionary management routines such as [[v5: | + | In Structured schema management, the elements that can be modified through the dictionary management routines such as [[v5: |
| These objects can then be easily stored through the use of technologies such as JSON, which can easily be manipulated through 3rd party tools and reprocessed. | These objects can then be easily stored through the use of technologies such as JSON, which can easily be manipulated through 3rd party tools and reprocessed. | ||
| - | Each table, and element of a table (such as a column or index) is represented by a PHP object called a // | + | Each table and element of a table (such as a column or index) is represented by a PHP object called a // |
| ===== Construction Of The Structure ===== | ===== Construction Of The Structure ===== | ||
| Line 43: | Line 44: | ||
| The structure is not automatically sent to createTableSql, | The structure is not automatically sent to createTableSql, | ||
| - | In this example, we create a table 'TEST' with a single column ' | + | In this example, we create a table 'test' with a single column ' |
| <code php> | <code php> | ||
| $dict = newDataDictionary($db); | $dict = newDataDictionary($db); | ||
| - | $t = new metaObjectStructure($dict,' | + | $t = new metaObjectStructure($dict, |
| /* | /* | ||
| * Make sure the table is transactional in MySQL | * Make sure the table is transactional in MySQL | ||
| */ | */ | ||
| - | $t-> | + | $t-> |
| /* | /* | ||
| * Add the column | * Add the column | ||
| */ | */ | ||
| - | $t-> | + | $t-> |
| /* | /* | ||
v5/dictionary/structure/introduction.1460230510.txt.gz · Last modified: (external edit)
