Ticket #877 (new enhancement)

Opened 2 months ago

Last modified 5 weeks ago

TActiveRecord should support getTableInfo method.

Reported by: sergeymorkovkin Owned by: xue
Priority: low Milestone: 3.1.3
Component: Prado Framework v3 Version: 3.1
Severity: minor Keywords:
Cc:

Description

This method will return table information when overriden (TTableInfo). This will allow to avoid additional database requests for table structures, avoid caching and save execution time.

Moreover, this will allow developers to keep database installation information behind database classes! No *.sql scripts and additional code to build database. Everything is included into Prado. Adding simple class TDbBuilder will allow to perform database operations with ease: TDbBuilder::install($db, $path), TDbBuilder::uninstall($db).

Change History

Changed 2 months ago by sergeymorkovkin

Probably, this info should be implemented the same way as $RELATIONS static variable.

Changed 5 weeks ago by knut

  • milestone set to 3.1.3
Note: See TracTickets for help on using tickets.