| °³Ã¼ :: °ü°è :: ¼³Á¤ °´Ã¼ :: °ü°è :: ¼³Á¤ ¸ðµâÀº °³Ã¼ :: °ü°è µ¥ÀÌÅÍ ÀúÀå¼Ò¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
°³Ã¼ :: °ü°è :: ¼³Á¤ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Kineticode, Inc.
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~dwheeler/Object-Relation-v0.1.0/lib/Object/Relation/Setup/DB/SQLite.pm
°³Ã¼ :: °ü°è :: ¼³Á¤ ű×
°³Ã¼ :: °ü°è :: ¼³Á¤ ¼³¸í
°´Ã¼ :: °ü°è :: ¼³Á¤ ¸ðµâÀº °³Ã¼ :: °ü°è µ¥ÀÌÅÍ ÀúÀå¼Ò¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. °´Ã¼ :: °ü°è :: ¼³Á¤ ¸ðµâÀº °³Ã¼¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù :: relation µ¥ÀÌÅÍ ÀúÀå¼Ò¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. MY $ SETUP = OBJECT :: RELATION :: SETUP -> NEW (% params); $ setup-> ¼³Á¤;ÀÌ ¸ðµâÀº °³Ã¼¸¦ ¼³Á¤Çϴ Ŭ·¡½ºÀÇ ±âº» Ŭ·¡½ºÀÔ´Ï´Ù .: °ü°è :: ÇÚµé Data Store.Class ÀÎÅÍÆäÀ̽º Setup = object :: reation :: at new (% params);ÀÌ ÆÑÅ丮 »ý¼ºÀÚ´Â »õ·Î¿î Setup °´Ã¼¸¦ »ý¼ºÇÏ°í ¸®ÅÏÇÕ´Ï´Ù. ±âº»ÀûÀ¸·Î ´ÙÀ½ ¸Å°³ º¯¼ö´Â ´ÙÀ½ ¸Å°³ º¯¼ö¸¦ Çã¿ëÇÕ´Ï´Ù. ClassDetermines °´Ã¼ÀÇ ÇÏÀ§ Ŭ·¡½º :: °ü°è :: »ç¿ë ¼³Á¤. Ŭ·¡½º´Â object :: relations :: setup :: db :: pg ¶Ç´Â object :: relation :: setup namespace¿¡ÀÖ´Â °Í°ú °°Àº Àüü Ŭ·¡½º À̸§À¸·Î Àüü Ŭ·¡½º À̸§À¸·Î ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. À̸§, ¿¹ : db :: pg. ÀÏ´Ü °³Ã¼ :: °ü°è :: SetupÀÌ ÇÏÀ§ Ŭ·¡½º¸¦·ÎµåÇßÀ¸¸ç, »õ·Î¿î () »ý¼ºÀÚ·Î redispatch°¡µË´Ï´Ù. class ¸Å°³ º¯¼ö´Â »ý¼ºÀÚ°¡ ¼ºê Ŭ·¡½º¿¡¼ Á÷Á¢ È£ÃâµÇÁö ¾Ê´Â ÇÑ, Ŭ·¡½º°¡ Àͽº¸³´Ï´Ù. °´Ã¼ :: °ü°è :: Base¿¡¼ »ó¼ÓÇϴ Ŭ·¡½º¸¦ °Ë»öÇϴ Ŭ·¡½ºÀÇ Å¬·¡½º¸¦ °Ë»öÇϴ Ŭ·¡½ºÀÇ Å¬·¡½ºÀÇ Å¬·¡½º¸¦ °Ë»öÇÏÁö ¾Ê´Â ÇÑ, class :: sqliteÀÇ °æ¿ì. À̵éÀº object :: reation :: schemaÀÇ load_classes ¸Þ¼Òµå·Î Àü´ÞµË´Ï´Ù. µû¶ó¼ ¸ñ·ÏÀÇ ÃÖÁ¾ °ªÀº ¼±ÅÃÀûÀ¸·Î ÆÄÀÏ :: ã±â :: ±ÔÄ¢ °³Ã¼ ÀÏ ¼ö ÀÖ½À´Ï´Ù. ±âº»°ªÀº not not verbose.class metersschema_class ³» $ schema_class = object :: reation :: setup-> schema_classreturns oborms :: reation :: ½ºÅ°¸¶ ÇÏÀ§ Ŭ·¡½º¸¦ »ç¿ëÇÏ¿© µ¥ÀÌÅÍ ÀúÀå¼Ò¸¦ ÀÛ¼ºÇÏ´Â ½ºÅ°¸¶ Äڵ带 »ý¼ºÇÏ´Â µ¥ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±âº»Àû À¸·ÎÀÌ ¸Þ¼µå´Â °´Ã¼ :: °ü°è :: Setup ÇÏÀ§ Ŭ·¡½ºÀÇ À̸§°ú µ¿ÀÏÇÑ À̸§À» ¹ÝȯÇÏÁö¸¸ "STORE"·Î ´ëü µÈ "½ºÅ°¸¶"·Î ¹Ù²ò´Ï´Ù .store_class ³» $ STORE_CLASS = OBJECT :: ¸±·¹À̽º _ +> STORE_CLASSRETERNS °´Ã¼ÀÇ À̸§ :: °ü°è :: ÇÚµé ÇÏÀ§ Ŭ·¡½º object :: relation ÀÀ¿ë ÇÁ·Î±×·¥¿¡ ´ëÇÑ µ¥ÀÌÅÍ ÀúÀå¼Ò¿¡ ´ëÇÑ ÀÎÅÍÆäÀ̽º¸¦ °ü¸®ÇÕ´Ï´Ù. ±âº»Àû À¸·ÎÀÌ ¸Þ¼µå´Â ¿ÀºêÁ§Æ® :: °ü°è :: Setup ÇÏÀ§ Ŭ·¡½ºÀÇ À̸§°ú µ¿ÀÏÇÑ À̸§À» ¹ÝȯÇÏÁö¸¸ "ºôµå"¸¦ Á¦°ÅÇÕ´Ï´Ù. instalctance interfaceInstance accidorsverbose my $ verbose = $ setup-> verbose; $ setup-> verbose ($ verbose); ¼³Á¤ÀÌ verbose.class_dirs°¡µÇ¾î¾ßÇÏ´ÂÁö ¿©ºÎ¸¦ À§Á¶ÇÏ´Â ºÎ¿ï °ªÀº my @dirs = $ setup-> class_dirs; $ setup-> class_dirs (@dirs); object :: reation :: base¿¡¼ »ó¼ÓÇϴ Ŭ·¡½º¿¡ ´ëÇØ °Ë»ö ÇÒ µð·ºÅ丮 ¸ñ·ÏÀ» °¡Á® ¿À°Å³ª ¼³Á¤ÇÕ´Ï´Ù. À̵éÀº object :: reation :: schemaÀÇ load_classes ¸Þ¼Òµå·Î Àü´ÞµË´Ï´Ù. µû¶ó¼ ¸ñ·ÏÀÇ ÃÖÁ¾ °ªÀº ¼±ÅÃÀûÀ¸·Î ÆÄÀÏ :: Find :: Rule object.Instance MethodsSetup $ setup-> ¼³Á¤; µ¥ÀÌÅÍ ÀúÀå¼Ò¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ°ÍÀº subclasses.load_schema $ setup-> load_schema¿¡¼ ¹«½Ã ÇؾßÇÏ´Â Ãß»ó ¸Þ¼µåÀÔ´Ï´Ù. class_dirs ¼Ó¼º¿¡ ÀÇÇØ ÁöÁ¤µÈ °æ·Î¿¡ÀÖ´Â ¸ðµç ¶óÀ̺귯¸®°¡ÀÖ´Â °´Ã¼ :: °ü°è :: ½ºÅ°¸¶ °³Ã¼¸¦·ÎµåÇÕ´Ï´Ù. ÀÌ·¸°ÔÇÏ¸é ¹°·Ð °´Ã¼ :: °ü°è ½Ã½ºÅÛ Å¬·¡½º¸¦ Æ÷ÇÔÇÏ¿© ÀÌ¹Ì ¼³Ä¡µÈ °´Ã¼ :: °ü°è Ç÷§ÆûÀÇ ¸ðµç ¶óÀ̺귯¸®¸¦·ÎµåÇÕ´Ï´Ù. ±×·± ´ÙÀ½ ½Ã½ºÅÛ Å¬·¡½º¿Í ÀÀ¿ë ÇÁ·Î±×·¥ Ŭ·¡½º¸¦ Æ÷ÇÔÇÏ¿© ¿ÏÀüÇÑ µ¥ÀÌÅͺ£À̽º¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×°ÍÀº ½ÇÁ¦·Î Å×½ºÆ®¿¡¸¸ À¯¿ëÇÕ´Ï´Ù. $ setup-> noffify ( 'ÁÁÀº ...', $ /), ¼³Á¤ ¾Ë¸² ¸Þ½ÃÁö¸¦ Ãâ·ÂÇÕ´Ï´Ù. verbose ¼Ó¼ºÀÌ true ÀÎ °æ¿ì ¸ðµç ¸Þ½ÃÁö¸¦ ÀμâÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
°³Ã¼ :: °ü°è :: ¼³Á¤ °ü·Ã ¼ÒÇÁÆ®¿þ¾î