°³Ã¼ :: °ü°è :: ÇÚµé :: DB.

°´Ã¼ :: °ü°è :: handle :: db´Â °³Ã¼ :: °ü°è µ¥ÀÌÅͺ£À̽º ÀúÀå¼Ò ±âº» Ŭ·¡½ºÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

°³Ã¼ :: °ü°è :: ÇÚµé :: DB. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Kineticode, Inc.
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~dwheeler/Object-Relation-v0.1.0/lib/Object/Relation/Setup/DB/SQLite.pm

°³Ã¼ :: °ü°è :: ÇÚµé :: DB. ű×


°³Ã¼ :: °ü°è :: ÇÚµé :: DB. ¼³¸í

°´Ã¼ :: °ü°è :: handle :: db´Â °³Ã¼ :: °ü°è µ¥ÀÌÅͺ£À̽º ÀúÀå¼Ò ±âº» Ŭ·¡½ºÀÔ´Ï´Ù. °´Ã¼ :: °ü°è :: ÇÚµé :: DB´Â object :: relation µ¥ÀÌÅͺ£À̽º ÀúÀå¼Ò Base class.synopsissee °´Ã¼ :: °ü°è :: handle.this Ŭ·¡½º´Â RDBMS¿Í Åë½ÅÇϱâ À§ÇØ DBI¸¦ »ç¿ëÇÏ¿© °´Ã¼ :: °ü°è ÀúÀå¼Ò API¸¦ ±¸ÇöÇÕ´Ï´Ù. RDBMS ƯÁ¤ µ¿ÀÛÀº °³Ã¼ :: °ü°è :: handle :: DB :: PG ¹× °´Ã¼ :: °ü°è :: ÇÚµé :: dbi :: Sqlite classes.Public MethodITÀÌ Å¬·¡½ºÀÇ ¸¹Àº ¸Þ¼Òµå°¡ÀÖÀ» ¼ö ÀÖÁö¸¸ Ŭ·¡½º ¸Þ¼Òµå·Î È£ÃâµÇ´Â °æ¿ì ÀνºÅϽº´Â »ç¿ëÀÚ ¸Þ½ÃÁö¿¡ ÀÀ´äÇÏ´Â µ¥ ÇÊ¿äÇÑ Á¤º¸¸¦ ÆĽÌÇÏ°í ÇÊ¿äÇÑ Á¤º¸¸¦ ±¸¹® ºÐ¼®ÇÏ´Â µ¿¾È ºÎ±â¸¦ À§ÇØ ³»ºÎÀûÀ¸·Î »ç¿ëµË´Ï´Ù. µû¶ó¼­ ¸¹Àº Public Ŭ·¡½º ¸Þ¼Òµå°¡ ÀÛ¾÷Çϱâ Àü¿¡ °´Ã¼¸¦ ÀνºÅϽºÈ­ÇÕ´Ï´Ù. $ STORE-> ÀúÀå ($ °´Ã¼);ÀÌ ¸Þ¼Òµå´Â °³Ã¼¸¦ µ¥ÀÌÅÍ ÀúÀå¼Ò¿¡ ÀúÀåÇÕ´Ï´Ù. ¶ÇÇÑ Æ÷ÇÔ µÈ ¸ðµç °´Ã¼¸¦ µ¥ÀÌÅÍ ÀúÀå¼Ò¿¡ µ¿½Ã¿¡ ÀúÀåÇÕ´Ï´Ù. TransactionÀÌ begin_work¸¦ »ç¿ëÇÏ¿© Æ®·£Àè¼ÇÀÌ ¼öµ¿À¸·Î ½ÃÀÛµÈ °æ¿ìÀÌ ¸Þ¼­µå´Â »õ·Î¿î transaction._begin_work $ store -> _ begin_work¸¦ ½ÃÀÛÇÏÁö ¾Ê½À´Ï´Ù. ½ÃÀÛ °Å·¡. ÀÌ¹Ì Æ®·£Àè¼Ç¿¡ÀÖ´Â °æ¿ì È¿°ú°¡ ¾ø½À´Ï´Ù ._Commit $ Store -> _ Commit; Æ®·£Àè¼ÇÀ» Ä¿¹ÔÇÕ´Ï´Ù. Transaction._rollback $ STORE -> _ ·Ñ¹é; Ä¿¹ÔµÇÁö ¾ÊÀº Æ®·£Àè¼ÇÀ» ´Ù½Ã ·Ñ¹éÇÕ´Ï´Ù. Æ®·£Àè¼Ç¿¡¾ø´Â °æ¿ì È¿°ú°¡ ¾ø½À´Ï´Ù .Search_class My $ search_class = $ STORE-> search_class; $ STORE-> search_class ($ search_class); ÀÌ°ÍÀº object :: relation :: meta :: class °´Ã¼ÀÇ ÇöÀç °Ë»ö¿¡¼­ °Ë»öµÇ´Â Ŭ·¡½º¸¦ ³ªÅ¸³»´Â Ŭ·¡½º °´Ã¼ÀÔ´Ï´Ù. ÀÌ°ÍÀº ÀϹÝÀûÀ¸·Î Äõ¸® ¹æ¹ý¿¡ ´ëÇÑ Ã¹ ¹ø° ÀμöÀÔ´Ï´Ù. ÀϹÝÀûÀ¸·Î ÇÁ·Î±×·¡¸Ó´Â ¾î¶² °Ë»ö Ŭ·¡½º°¡ ÀÛ¾÷ÇÏ°í ÀÖ´ÂÁö ¾Ë ¼ö ÀÖÁö¸¸ ±×·¸Áö ¾ÊÀº °æ¿ìÀÌ ¹æ¹ýÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ÇÁ·Î±×·¡¸Ó°¡ ¸ÕÀú °Ë»öÇϱâ Àü¿¡ ÀúÀå¼ÒÀÇ ÀνºÅϽº¸¦ »ý¼ºÇÏ´Â °æ¿ì¿¡¸¸ ¿ÜºÎ¿¡¼­¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ³» $ STORE = OBJECT :: ¸±·¹ÀÌ :: ÇÚµé -> »õ·Î¿î; MY $ ITER = $ STORE-> Äõ¸® ($ some_class, name => 'foo'); ³» $ class = $ store-> search_class; # $ object = store-> lookup ($ class_object, $ unicque_attr, $ value)À» ¹ÝȯÇÕ´Ï´Ù. °ªÀÌ ÁöÁ¤µÈ ¼Ó¼º°ú ÀÏÄ¡ÇÏ´Â ´ÜÀÏ °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â Ư¼ºÀÌ Á¸ÀçÇÏÁö ¾Ê°Å³ª unique.query°¡ ¾Æ´Ñ °æ¿ì ¿¹¿Ü¸¦ throwÇÕ´Ï´Ù. My $ iter = $ obj_rel_object-> Äõ¸® (@search_params); °´Ã¼ :: °ü°è :: iterator °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. °Ë»ö params. °´Ã¼ :: °ü°è :: °Ë»ö¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº Params.squery ³» $ iter = $ obj_rel_object-> query (@search_params); Äõ¸®¿Í µ¿ÀÏÇÏÁö¸¸ ¹®ÀÚ¿­ °Ë»ö ±¸¹®À» »ç¿ëÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå´Â query.query_uuids ³» @uuids = store-> query_uuids ($ search_class, @Attributes, % Á¦ÇÑ Á¶°Ç)ÀÇ ¾Õ¿¡ 'string'°ªÀ» ±â´ëÇÏÁö ¾Ê½À´Ï´Ù. $ uuids = store-> query_uuids ($ search_class, @Attributes, % Á¦ÇÑ Á¶°Ç);ÀÌ ¸Þ¼Òµå´Â ³ª¿­µÈ ±âÁØ°ú ÀÏÄ¡ÇÏ´Â UUID ¸ñ·ÏÀ» ¸®ÅÏÇÕ´Ï´Ù. Äõ¸®¿Í µ¿ÀÏÇÑ Àμö°¡ ÇÊ¿äÇÕ´Ï´Ù. ¸ñ·Ï ÄÁÅؽºÆ®¿¡¼­´Â ¸ñ·ÏÀ» ¹ÝȯÇÕ´Ï´Ù. ½ºÄ®¶ó ÄÁÅؽºÆ®¿¡¼­´Â @uuids = store-> squery_uuids ($ search_class, "@Attributes", @Constraints)¸¦ ¹ÝȯÇÕ´Ï´Ù. MY $ UUIDS = STORT-> SQUERY_UUIDS ($ search_class, @attributes ", @Constraints); query_uuids¿Í µ¿ÀÏÇÏÁö¸¸ String Search Syntax.count ³» $ count = store-> count ($ class_object, @search_params);ÀÌ ¹æ¹ý µ¿ÀÏÇÑ Àμö¸¦ Äõ¸®·Î »ç¿ëÇÕ´Ï´Ù. À¯»çÇÑ Äõ¸®°¡ RETURN.ANY ÃÖÁ¾ Á¦¾à Á¶°Ç (¿¹ : "Á¦ÇÑ"¶Ç´Â "ÁÖ¹® Ƚ¼ö")ÀÇ ¼öÀÇ ¼ö¸¦ »èÁ¦ÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.


°³Ã¼ :: °ü°è :: ÇÚµé :: DB. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

FileMetAdata :: Store :: XML.

FileMetAdata :: Store :: XMLÀº ½ºÅ丮Áö ¿ë XML ÆÄÀÏÀ» »ç¿ëÇÏ¿© FileMetAdata Framework ¿ë ÀúÀå¼Ò¸¦ ±¸ÇöÇÏ´Â ¸ðµâÀ» Æ÷ÇÔÇÕ´Ï´Ù. ...

172

´Ù¿î·Îµå