首页 > 数据库技术 > 详细

Viewing the Raw SQL Statement(xcode で)

时间:2014-12-17 09:04:30      阅读:362      评论:0      收藏:0      [点我收藏+]

Thanks to Core Data. Even without learning SQL and database, you’re able to perform create, select, update and delete operation. However, for those with database background, you may want to know the exact SQLs executed behind the scene.

To enable SQL output for debugging purpose, click “MyStore” and select “Edit Scheme”.

bubuko.com,布布扣

Edit scheme in Xcode project

Under “Argument Passed on Launch” section, click the “+” button and add the “-com.apple.CoreData.SQLDebug 1″ parameter:

bubuko.com,布布扣

Add SQL Debug Parameter

Click “OK” to confirm. Now run your app again and you’ll see the raw SQL statement (e.g. SELECT and UPDATE) displayed in the output window.

bubuko.com,布布扣

SQL statement for Core Data Debugging

Viewing the Raw SQL Statement(xcode で)

原文:http://www.cnblogs.com/vonk/p/4168537.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!