python - How do I see the SQL that ponyorm generates? -


इस उदाहरण में:

  db_session के साथ: p = select (_ _ के लिए व्यक्ति में) में डी.नाम == 'जॉन') [:] [0]   

मुझे डीबगिंग प्रयोजनों के लिए इसकी ज़रूरत है, क्योंकि मैं एसक्यूएल को देखना चाहूंगा कि वह एक समान क्वेरी के लिए अन्य ORMs।

एक pony.orm.sql_debug (True) का उपयोग कर सकते हैं। यह आपको सभी एसक्यूएल दिखाएगा जो कि टर्नकी में होती है जब टर्नकी में होती है।

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -