dbix :: table2hash.

Çؽ÷Πµ¥ÀÌÅͺ£À̽º Å×À̺íÀ» ÀнÀ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

dbix :: table2hash. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Ron Savage
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~rsavage/

dbix :: table2hash. ű×


dbix :: table2hash. ¼³¸í

µ¥ÀÌÅͺ£À̽º Å×À̺íÀ» Çؽ÷ΠÀнÀ´Ï´Ù dbix :: table2hash´Â µ¥ÀÌÅͺ£À̽º Å×À̺íÀ» Àаí Çؽÿ¡ Å°¿Í °ªÀ» ÀúÀåÇÏ´Â perl ¸ðµâÀÔ´Ï´Ù. Synopsis #! / usr / bin / perl dbix :: table2hash; MY ($ key2value) = dbix :: table2hash -> new (dbh => $ dbh, table_name => $ table_name, key_column => 'name', value_column => 'id') -> select (); # ¶Ç´Â ³» ($ key2hashref) = dbix :: table2hash -> new (dbh => $ dbh, table_name => $ table_name, key_column => 'name) -> select_hashref (); # ¶Ç´Â ³» ($ key2tree) = dbix :: table2hash -> new (dbh => $ dbh, table_name => $ table_name, key_column => 'name', child_column => 'id', parent_column => 'parent_id', skip_columns => ) -> select_tree (); Á¶ÁØÀº °£´ÜÇÑ ·è¾÷ Å×À̺í ÀÎ Çؽø¦ ¸¸µå´Â °ÍÀÔ´Ï´Ù. À̸¦ À§ÇØ ¸ðµâÀº key_columnÀÌ SQL expression.Select () ¹× select_hashref ()¸¦ °¡¸®Å°´Â °ÍÀ» Çã¿ëÇÕ´Ï´Ù. select_tree ()´Â Áßø Çؽø¦ ¹ÝȯÇÕ´Ï´Ù. select_tree ()´Â ÇÊ¿äÇÑ °æ¿ì select_hashref ()¸¦ ¼±ÅÃÇϸé select_hashref ()¸¦ È£ÃâÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


dbix :: table2hash. °ü·Ã ¼ÒÇÁÆ®¿þ¾î