码迷,mamicode.com
首页 > 数据库 > 详细

Viewing the Raw SQL Statement(xcode で)

时间:2014-12-17 09:07:42      阅读:287      评论:0      收藏:0      [点我收藏+]

标签:style   http   ar   io   os   sp   for   on   div   

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 で)

标签:style   http   ar   io   os   sp   for   on   div   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!