v5:activerecord:activerecord_index
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
activerecord:active_record [2015/12/06 01:59] – [Active Record Methods] mnewnham | v5:activerecord:activerecord_index [2021/04/11 15:19] – [Introduction] fix wikipedia link, minor changes dregad | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP right box> | ||
+ | [[v5: | ||
+ | </ | ||
====== ADOdb Active Record ====== | ====== ADOdb Active Record ====== | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | ADOdb_Active_Record | + | **ADOdb Active Record** |
- | The ADODB Active Method library takes advantage of all the functionality of the underlying [[userguide: | + | The ADODB Active Method library takes advantage of all the functionality of the underlying [[v5:userguide:userguide_index|ADOdb]] system, from table naming and casing control, mutiple database connections to features such as recordset caching. |
- | Thre are a couple of simple rules that help aid development, | + | Thre are a couple of simple rules that aid development, |
* The table and column names should be a consistent case in case sensitive environments. | * The table and column names should be a consistent case in case sensitive environments. | ||
* The table and column names should not include special characters or reserved words. | * The table and column names should not include special characters or reserved words. | ||
* The name of the table should be a plural, based on the name of class, so for example, a class name of '' | * The name of the table should be a plural, based on the name of class, so for example, a class name of '' | ||
- | * The unique identifier, and primary key for the record for each table should be called '' | + | * The unique identifier, and primary key for the record for each table should be called '' |
+ | * The fields in the Active record are bound by the same restraints as the columns in the database, e.g., if a field is declared as NOT NULL in the database, it must follow the same rule in the Active Record. | ||
- | Any of the above items can be configured differently, | ||
- | ===== Additional functionality ===== | + | '' |
- | '' | + | |
- | '' | + | '' |
- | ADOdb Active Record functions support the [[reference: | + | ADOdb Active Record functions support the [[v5:reference:connection: |
===== Using ADOdb Active Record ===== | ===== Using ADOdb Active Record ===== | ||
- | See the [[activerecord: | + | See the [[v5:activerecord: |
===== Developer Reference ===== | ===== Developer Reference ===== | ||
==== Active Record Methods ==== | ==== Active Record Methods ==== | ||
- | ^ Method | + | ^ Method |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
- | ^ [[activerecord: | + | ^ [[v5:activerecord: |
+ | ^ [[v5: | ||
==== Static Active Record Methods ==== | ==== Static Active Record Methods ==== | ||
^Method^Description^ | ^Method^Description^ | ||
- | ^[[activerecord: | + | ^[[v5:activerecord: |
- | ^[[activerecord: | + | ^[[v5:activerecord: |
- | ^[[activerecord: | + | ^[[v5:activerecord: |
- | ^[[activerecord: | + | ^[[v5:activerecord: |
- | ^[[activerecord: | + | ^[[v5:activerecord: |
- | ^[[activerecord: | + | ^[[v5:activerecord: |
+ | ^[[v5: | ||
==== Associated Connection Methods ==== | ==== Associated Connection Methods ==== | ||
^Method^Description^ | ^Method^Description^ | ||
- | ^[[activerecord: | + | ^[[v5:activerecord: |
- | ^[[activerecord: | + | ^[[v5:activerecord: |
==== Class Variables ==== | ==== Class Variables ==== | ||
- | ^Variable^Description^ | + | ^ Variable |
- | ^[[activerecord: | + | ^ [[v5:activerecord: |
+ | ^ [[v5: | ||
+ | ^ [[v5: | ||
+ | ^ [[v5: | ||
+ | ^ [[v5: | ||
+ | ==== Global Variables === | ||
+ | ^ Variable | ||
+ | ^$ADODB_ACTIVE_CACHESECS|Set to true to enable caching of metadata such as field info| | ||
+ | ^$ACTIVE_RECORD_SAFETY|Set to false to disable safety checks. This confirms that the structure of the active record matches the structure of the associated table| | ||
+ | ^$ADODB_ACTIVE_DEFVALS|Use default values of table definition when creating new active record.| | ||
------------------------------------------- | ------------------------------------------- | ||
<WRAP right box round> | <WRAP right box round> | ||
Line 68: | Line 80: | ||
==== Extended Active Record Methods ==== | ==== Extended Active Record Methods ==== | ||
^Method^Description^ | ^Method^Description^ | ||
- | ^[[activerecord: | + | ^[[v5:activerecord: |
v5/activerecord/activerecord_index.txt · Last modified: 2022/06/09 18:37 by 3.83.52.90