| dbix :: theyhash. DBIX :: TableHash´Â Çؽø¦ MySQL Å×À̺í SQL UTILS¿¡ ¹À» ¼öÀÖ´Â PERL ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
dbix :: theyhash. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Chris Thorman
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~chthorman/Module-Reload-Sel-1.02/Selective.pm
dbix :: theyhash. ű×
dbix :: theyhash. ¼³¸í
DBIX :: TableShash´Â Çؽø¦ MySQL Å×À̺í SQL Utils¿¡ ¹À» ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. dbix :: tableShash´Â Çؽø¦ MySQL Å×ÀÌºí¿¡ ¹À» ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. Synnopsis´Â DBIX :: TheyHash¸¦ »ç¿ëÇÕ´Ï´Ù. ³» $ dbhash = dbix :: tablehash-> create_or_die (my $ params = {dbidriver => mysql ', database => myDatabase', hostname => 'localhost', port => nodef, login => '') => '' '', tableName => 'salespeople', keyfield => 'fullname', ## ¸ÖƼ Å° Á¶È¸ : fixedkeys => {areacode => 415, statuscode => 'È°¼º', recordtype => 'primary'} , ## ´ÜÀÏ °ªÀ» °Ë»öÇÏ·Á¸é : valueField => 'phoneNumber', ## ... ¶Ç´Â "´ÙÁß °ª"°Ë»ö ... valueField => undef, ## ... ¼±ÅÃÀûÀ¸·Î ÁöÁ¤ÇϽʽÿÀ ... retrievefields => , ij½Ì ¿ë : CacheMode => 'CachebeFoiteIterate'## ¶Ç´Â ... CacheMode => 'CacheOnetime'## ¶Ç´Â ... CacheMode => 'Cachenone'}); ³» ÇؽÃ; ³ØŸÀÌ (ÇؽÃ, 'dbix :: tablehash', $ params); MY $ dbhash = dbix :: tablehash-> create ($ params) ¶Ç´Â Á×À» "µµ¿ò¸»!"; ³» $ dbhash = dbix :: tablehash-> create_or_die ($ params); ³» $ dbhash = dbix :: tablehash-> create_copy ($ params) ¶Ç´Â ´ÙÀÌ "µµ¿ò¸»!"; ³» $ dbhash = dbix :: tablehash-> create_copy_or_die ($ params); ¸ðµç ¸Å°³ º¯¼ö´Â ´ÜÀÏ À͸í Çؽà ¸Å°³ º¯¼ö¸¦ ÅëÇØ Àü´ÞµÇÁö¸¸ ¼±Åà »çÇ×Àº ¾Æ´ÏÁö¸¸ °ÅÀÇ Ç×»ó µ¥ÀÌÅͺ£À̽º, tablename ¹× keyfield.omiting ValueField puts¸¦ ÁöÁ¤ÇؾßÇÕ´Ï´Ù. Çؽô ´ÜÀÏ °ª ´ë½Å Çʵå / °ªÀÇ Çؽø¦ ÀúÀå / °Ë»öÇÕ´Ï´Ù. "´ÙÁß °ª"¸ðµå¿¡¼ °¢ ·¹ÄÚµåÀÇ ¸ðµç Çʵå´Â ¸ðµç ÆäÄ¡¿¡¼ °Ë»öµË´Ï´Ù. ReTrieveFields ÁöÁ¤µÈ List.specifying fixedKeys´Â µ¥ÀÌÅͺ£À̽º Å×À̺íÀÇ ÇÏÀ§ ÁýÇÕ¸¸ÀÌ Çؽø¦ ÀúÀåÇÏ´Â "¸ÖƼ Å°"¸ðµå¿¡¼ Spec Å°°¡ °íÁ¤ Å°ÀÇ »ç¾ç°ú ÀÏÄ¡ÇÏ´Â ·¹Äڵ忡 ´ëÇÑ CorresOpndingÀÌ ÄÑÁüÀ¸·Î ÀÛµ¿ÇÕ´Ï´Ù. Cache ¸ðµå°¡ Äõ¸®¸¦ ÁÙÀÔ´Ï´Ù. ±×·¯³ª µ¿±âÈ ¹× µÅÁö ¸Þ¸ð¸®¸¦ ÀÒ¾î ¹ö¸®½Ê½Ã¿À. °´Ã¼´Â ½¬¿î ¼ºê Ŭ·¡½º ÀÏ ¼ö ÀÖµµ·Ï ¼³°èµÇ¾ú½À´Ï´Ù. ¸ðµç ¸Å°³ º¯¼öÀÇ ¸ðµç ¶Ç´Â ´ëºÎºÐÀÇ ±âº»°ªÀ» ¼³Á¤ÇÏ´Â ÇÏÀ§ Ŭ·¡½º¸¦ ¸¸µé¾î ¹ß½ÅÀÚ´Â ÀνºÅϽºÈ ½Ã°£¿¡ Á¦°ø ÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. ÇØ´ç ¹¿©ÀÖ´Â Çؽÿ¡ ÀÇÇØ °Ë»öµÇ¾ú½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
dbix :: theyhash. °ü·Ã ¼ÒÇÁÆ®¿þ¾î