{"id":458,"date":"2011-03-07T14:48:34","date_gmt":"2011-03-07T21:48:34","guid":{"rendered":"http:\/\/mattfife.net\/wordpress\/?p=458"},"modified":"2012-08-12T19:17:25","modified_gmt":"2012-08-13T02:17:25","slug":"sqlite-on-iphone-is-byte-compatible-with-windows","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=458","title":{"rendered":"SQLite on iPhone is byte compatible with Windows"},"content":{"rendered":"<p>I was working on a good write-up on how to use SQLite in C# (since the most popular package install for SQLite on C# is kinda broken in Visual Studio 2010), but thought this might be a good data point for folks.<\/p>\n<p>So, the short answer?\u00a0 Yes, you can build SQLite databases on Windows, copy them across to your Mac, and then use them in iPhone applications without any issues.<br \/>\nYou should open the database with the proper character formatting\u00a0 (<code> sqlite3_open([dbPath UTF8String], &amp;database)<\/code>),<br \/>\nbut other than that the SQL files can be just copied straight across the devices from Win 7-&gt;Mac-&gt;iPhone and the same select\/delete\/etc commands work like a champ.<\/p>\n<p>How do I know?\u00a0 I did it last night. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was working on a good write-up on how to use SQLite in C# (since the most popular package install for SQLite on C# is kinda broken in Visual Studio 2010), but thought this might be a good data point for folks. So, the short answer?\u00a0 Yes, you can build SQLite databases on Windows, copy them across to your Mac, and then use them in iPhone applications without any issues. You should open the database with the proper character formatting\u00a0&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/mattfife.com\/?p=458\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-technicalprogramming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-7o","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=458"}],"version-history":[{"count":1,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions\/573"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}