Quick links: Content - sections - sub sections
EN FR
Quick Search Advanced search
 
Page

  [Opened] Améliorations dans jDao et jDbTools

Posted by laurentj on 03/20/2009 10:59

Je viens de commiter dans le trunk un gros patch sur jDao et jDbTools (ticket #871).

les changements :

  • Dao files can now refers to any database field type, although it doesn't support blob fields yet
  • support of a new attribute autoincrement on the property element in jdao
  • better support of long numerical values
  • new properties on jDbField: unifiedType, unsigned, minLength, maxLength minValue maxValue
  • new methods on jDbTools: getTypeInfo, unifiedToPhpType, stringToPhpValue, escapeValue, getBooleanValue, encloseName
  • no more static properties on jDaoCompiler
  • Api of jDaoParser and jDaoGenerator has changed
  • new properties on jDaoProperty: unifiedType, autoIncrement, and the signature of the constructor has changed
  • removed the deprecated method jDb::getProfil and you should use jDb::getProfile instead

Normalement, il n'y a pas de modif à faire dans votre code, sauf si vous utilisez l'api interne de jDao (jDaoParser, jDaoProperty), ce qui ne devrait pas être le cas.

Par contre, c'est un gros patch, et il est possible qu'il y ait des regressions ou des bugs, malgrés les nombreux tests effectués. Donc n'hésitez pas à tester et à reporter les bugs/regressions sur le tracker.

 
Page
  1. Améliorations dans jDao et jDbTools