historical-db
Yii Components for managing historical database records.
historical-db is a collection of components for Yii that allow for automatic creation of historical database records at the application layer. ActiveRecord and DAO are both supported.
'components'=>array( // ... 'db'=>array( 'pdoClass'=>'HistoricalDbPDO', 'class'=>'HistoricalDbConnection', 'logHistorical'=>true, 'connectionString'=>'mysql:host=localhost;dbname=database_name', // Edit 'emulatePrepare'=>true, 'username'=>'database_username', // Edit 'password'=>'database_password', // Edit ), 'dbHistorical'=>array( 'pdoClass'=>'HistoricalDbPDO', 'class'=>'HistoricalDbConnection', 'logHistorical'=>false, 'connectionString'=>'mysql:host=localhost;dbname=historical_database_name', // Edit 'emulatePrepare'=>true, 'username'=>'historical_database_username', // Edit 'password'=>'historical_database_password', // Edit ), ),
'params'=>array( // ... 'historicalDbPrefix' => 'z', ),
HistoricalDbMigration::createHistoricalTable()HistoricalDbCommand::executeHistoricalInsert(), HistoricalDbCommand::executeHistoricalUpdate(), HistoricalDbCommand::executeHistoricalDelete() instead of execute().HistoricalDbCommand::insert(), HistoricalDbCommand::update(), HistoricalDbCommand::delete() all support historical record creation.HistoricalActiveRecord:updateAll() for instance. Certain methods contain unnecessary redundancies at this time.Get the code at GitHub
Modified BSD License https://github.com/gtcode/historical-db
Total 2 comments
@Sephiroth:
Thanks for your comment.
Per the introduction and features list, the use is to create Type 4 Slowly Changing Dimensions for your database. Please let me know if you have any specific questions.
should be more specific to the use of this tool
Leave a comment
Please login to leave your comment.