PoE :: Component :: SimpleDBI.POEÀÇ ºñµ¿±â ºñ Â÷´Ü DBI È£ÃâÀº °£´ÜÇÏ°Ô ¸¸µé¾ú½À´Ï´Ù. | |
Áö±Ý ´Ù¿î·Îµå |
PoE :: Component :: SimpleDBI. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Apocalypse
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~apocal/
PoE :: Component :: SimpleDBI. ű×
PoE :: Component :: SimpleDBI. ¼³¸í
PoE¿¡¼ ºñµ¿±â ºñ Â÷´Ü DBI È£ÃâÀº °£´ÜÇÏ°Ô ¸¸µé¾ú½À´Ï´Ù. PoE :: Component :: SimpledBI´Â PoE¿Í ÇÔ²² »õ·Î¿î ¼¼¼ÇÀ» ¸¸µé°í "¹«°Å¿î"¸®ÇÁÆÃÀ» ¼öÇàÇϱâ À§ÇØ ÀÚ½Ä ÇÁ·Î¼¼½º¸¦ »êÃâÇÏ¿© ¸¶¼úÀ» Àß ÀÛµ¿½ÃÅ°´Â Perl ¸ðµâÀÔ´Ï´Ù. ÀÌ·¸°ÔÇϸé ÁÖ¿ä PoE ÇÁ·Î¼¼½º°¡ ´Ù¸¥ Ŭ¶óÀ̾ðÆ®¸¦ °è¼Ó ¼ºñ½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. Äõ¸®´Â ´ë±â¿¿¡ ³Ö°í ÇÑ ¹ø¿¡ Çϳª¾¿ 󸮵˴ϴÙ.ÀÌ ¸ðµâÀ» »ç¿ëÇϴ ǥÁØ ¹æ¹ýÀº ´ÙÀ½À» ¼öÇàÇÏ´Â °ÍÀÔ´Ï´Ù. PoE :: Component :: SimpledBI »ç¿ë; PoE :: Component :: SimpleDBI-> NEW (...); PoE :: ¼¼¼Ç -> »ý¼º (...); PoE :: Kernel-> Run (); ½Ã³ñ½Ã½º »ç¿ë PoE; PoE :: Component :: SimpledBI »ç¿ë; # ¿ì¸®°¡ PoE :: Component :: SimpledBI-> New ( 'SimpleDBI')¸¦ ¿øÇÏ´Â º°ÄªÀ¸·Î »õ ¼¼¼ÇÀ» ¸¸µì´Ï´Ù. 'DBI ¼¼¼Ç'À» ¸¸µé ¼ö ¾ø½À´Ï´Ù. ' # simpledbi poe :: session-> create (inline_states => {_start => sub {_ _ _ -> Æ÷½ºÆ® ( 'SimpleDBI', 'Connect', 'DSN' '=>'dbi : mysql : database = foobaz; host = 192.168.1.100; port => 'foobar', 'password'=> 'secretpassword', 'À̺¥Æ®'=> 'conn_handler', ); # Äõ¸®¸¦ ½ÇÇàÇÏ°í RETTER _ $ _ -> POST ( 'SIMPLEDBI', 'DO', 'SQL'=> 'ID =' '' '' ''ARTELYERS '=>' QW (38)], 'À̺¥Æ®'=> 'deleted_Handler', 'insert_id'=> 0, Á¤º¸ _ -> post ( 'simpleedbi', 'simpy', 'sql' ' => 'Frowable Limit 1', 'À̺¥Æ®'=> 'Success_Handler', '¼öÇϹ°'=> '³»°¡ °è¼ÓÇÏ°í ½ÍÀº ¹°°Çµé!',); ¿ì¸®´Â ³ªÁß¿¡ ±×°ÍÀ» »èÁ¦ÇÒ ¼ö ÀÖ½À´Ï´Ù. ','ÀÚ¸® Ç¥½Ã ÀÚ S '=> ,'À̺¥Æ® '=>'multiple_handler ','prepare_cached '=> 0,); # ¹º°¡¸¦ ÀοëÇÏ°í ´Ù¸¥ ¼¼¼Ç $ _ -> °Ô½Ã¹° ( 'simpleedbi', 'quote', 'sql'=> foo $ * @ %% sdkf "" "" "=> ' completoresession ','À̺¥Æ® '=>'quote_handler ', # ¿ì¸®ÀÇ ¸¶À½À» ¹Ù ²Ù¾ú½À´Ï´Ù! $ _ -> °Ô½Ã¹° ('simpledbi ','delete_query ', $ ID); # 3 Á¾·á ¹æ¹ý # 3 °¡Áö ¹æ¹ýÀ¸·Î ±âÁ¸ Äõ¸®°¡ ¿Ï·áµÈ ´ÙÀ½ $ _ -> POST ( 'SimpleDBI', 'Shutdown')¸¦ Á¾·áÇÕ´Ï´Ù. # À̺¥Æ®°¡ Travers # PoEÀÇ ´ë±â¿À» Ž»öÇÏ°í SimpleDBI $ _ -> POST ( 'SimpleDBI')¿¡ µµÂøÇÒ ¶§ Á¾·áµË´Ï´Ù. ','Á¾·á ','Áö±Ý ') # revaker shutdown :) $ _ -> ÅëÈ ('simpledbi ','shutdown ','now ');} ¿äû Çڵ鷯 Á¤ÀÇ'Quote_Handler ' => \ foohandler, # µîµî},); ¿ä±¸ »çÇ× : ¡¤ Perl.
PoE :: Component :: SimpleDBI. °ü·Ã ¼ÒÇÁÆ®¿þ¾î