| °´Ã¼ :: °ü°è :: ¼³Á¤ :: DB :: SQLite. °´Ã¼ :: °ü°è :: setup :: db :: sqlite ¸ðµâÀº object :: reation :: setup :: db¿¡¼ SQLite ¼³Á¤ ÀúÀå¼Ò¸¦ ºôµåÇÕ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
°´Ã¼ :: °ü°è :: ¼³Á¤ :: DB :: SQLite. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Kineticode, Inc.
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~dwheeler/Object-Relation-v0.1.0/lib/Object/Relation/Setup/DB/SQLite.pm
°´Ã¼ :: °ü°è :: ¼³Á¤ :: DB :: SQLite. ű×
°´Ã¼ :: °ü°è :: ¼³Á¤ :: DB :: SQLite. ¼³¸í
°´Ã¼ :: °ü°è :: SETUP :: DB :: SQLite ¸ðµâÀº °³Ã¼ :: °ü°è :: setup :: db¿¡¼ SQLite ¼³Á¤ »óÁ¡À» ºôµåÇÕ´Ï´Ù. °´Ã¼ :: °ü°è :: setup :: db :: sqlite´Â object :: relation :: setup :: db sqlite set up store.class interfac constructorsnew my $ sqlite_setup = object :: reation :: ¼³Á¤ :: DB :: SQLite-> »õ (% params); »ý¼ºÀÚ´Â object :: relations :: setup :: db¿¡¼ »ó¼ÓµÇÁö¸¸ DSN ¼Ó¼ºÀÌ ¼³Á¤µÇÁö ¾ÊÀº ½ÃÁ¡À» °¨ÁöÇÏ°í ±âº»°ªÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù. ÇØ´ç °ªÀÇ µ¥ÀÌÅͺ£À̽º ÆÄÀÏÀº obj_rel.db°¡µÇ°í file :: temp :: tempdir ()¿¡¼ ¸®ÅÏ µÈ µð·ºÅ丮¿¡ »ì ¼ö ÀÖ½À´Ï´Ù. class methodSconnect_Attrs DBI-> connect ($ dsn, $ »ç¿ëÀÚ, $ pass, {object :: relation) :: Setup :: DB :: SQLite-> Connect_Attrs}); DBI CONNECT () ¸Þ¼µå¿¡ Àü´Þ µÈ ¼Ó¼º Çؽÿ¡¼ »ç¿ëÇÒ arupments ¸ñ·ÏÀ» ¹ÝȯÇÕ´Ï´Ù. object :: reation :: setup :: db to adnstance => 1.Instance interfaceInstance methodsetup $ setup-> setup; µ¥ÀÌÅÍ ÀúÀå¼Ò¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ±¸ÇöÀº µ¥ÀÌÅͺ£À̽º ÇÚµéÀ» ¸¸µå°í DBH ¼Ó¼º¿¡ ÇÒ´ç ÇÑ ´ÙÀ½ ½´ÆÛ :: SETUP ()À» È£ÃâÇÏ¿© °´Ã¼ :: °ü°è :: SETUP :: DB´Â work.teardown $ KBS-> Âõ¾îÁüÀÇ ´ë·®À» ó¸®ÇÕ´Ï´Ù. ¸ðµç µ¥ÀÌÅͺ£À̽º ¿¬°áÀ» ºÐ¸®ÇÏ°í DSN¿¡¼ ÃßÃâÇÑ µ¥ÀÌÅͺ£À̽º ÆÄÀÏÀ» »èÁ¦ÇÏ¿© µ¥ÀÌÅͺ£À̽º¸¦ ¶¼¾î³À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
°´Ã¼ :: °ü°è :: ¼³Á¤ :: DB :: SQLite. °ü·Ã ¼ÒÇÁÆ®¿þ¾î