| ¼ÒÆÄ ºü¸£°í ´õ·¯¿î ÆÄÀ̽ã ÀÓº£µðµå ¹× ºñ °ü°è µ¥ÀÌÅͺ£À̽º |
Áö±Ý ´Ù¿î·Îµå |
¼ÒÆÄ ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Geoffrey Lehee
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/Socketubs
¼ÒÆÄ Å±×
¼ÒÆÄ ¼³¸í
Sofart´Â ºü¸£°í ´õ·¯¿î ÆÄÀ̽ã ÀÓº£µðµå ¹× ºñ °ü°è µ¥ÀÌÅͺ£À̽ºÀÔ´Ï´Ù. »ý»ê ¹× Å×½ºÆ®¸¦ À§ÇØ MongoDB¿¡¼ ¿µ°¨À» ¾ò¾ú½À´Ï´Ù. ½ºÅ丮Áö¿¡ ÇÇŬÀ» »ç¿ëÇϽʽÿÀ. ´ÜÀÏ (±âº»°ª) ¹× ´ÙÁß »ç¿ëÀÚ·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×°ÍÀº ½Ç½Ã°£ µ¿±âÈ ¶Ç´Â "µ¥ÀÌÅͺ£À̽º ¿¬°á"sync.installationinstall pip : pip ¼³Ä¡ sofartexampleasy »ç¿ë : >>> ¼ÒÇÇ¾Æ °¡Á® ¿À±â µ¥ÀÌÅͺ£À̽º ¹× ÄÝ·º¼Ç : >>> db = database ( '/ tmp / so.fart)) >>> db.new_Collection ( 'test_collection') >>> db.Collections Ä÷º¼ÇÀ» »ç¿ëÇÏ¿© Àç»ý : >>> c = db.get ( 'test_collection') >>> Æ÷½ºÆ® = { "¾ÆƼ½ºÆ®": " Jambon ", ..."Æ®·¢ ":"³ª´Â ³» jambon "} >>> c.save (post) >>> c.find_one () { 'track': '³ª´Â ³» jambon', '_id'¸¦ ÁÁ¾ÆÇÕ´Ï´Ù. 'B2D6BF60-6C11-4E26-9357-EFB28056E60D', '¿¹¼ú°¡': 'Jambon'} $ >>> c.remove ( 'b2d6bf60-6c11-4e26-9357-efb28056e60d') >>> c.find_one () >> > ÀϺΠÇÊÅÍ : >>> C.Find_One ({ "¾ÆƼ½ºÆ®": "Jambon"}) { 'Æ®·¢': '³ª´Â ³» Jambon', '_id': 'B2D6BF60-6C11-4E26-9357-EFB28056E60D', ' ¾ÆƼ½ºÆ® ':'Jambon '} >>> C.Find_One ({ "¾ÆƼ½ºÆ®": "Bieber"}) >>> TestSyou Å×½ºÆ® / test_test_sofart.py¿¡¼ Å×½ºÆ®¸¦ ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×¸®°í Å×½ºÆ® / Populate.py.performancesperformances°¡ È®½ÇÈ÷ ¾î¸® ¼®°í º¥Ä¡¸¦ ÂüÁ¶ÇϽʽÿÀ. ´ÜÀÏÀº ´ÙÁß ¿øÀκ¸´Ù ´õ ºü¸¥ °ÍÀ̹ǷΠµ¥ÀÌÅͺ£À̽º°¡ ´ÝÈ÷¸é RAM¿¡¼ ÀÛµ¿ÇÏ°í µ¥ÀÌÅÍ°¡ ´ÜÁö µ¥ÀÌÅÍ·Î ÀÛµ¿ÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é °¢ ¿äûÀÇ °¢ ¿äûÀÇ ´ÙÁß ´Ù¿î µ¥ÀÌÅÍ. Á¦Ç°ÀÇ È¨ÆäÀÌÁö
¼ÒÆÄ °ü·Ã ¼ÒÇÁÆ®¿þ¾î