{"id":253,"date":"2007-06-18T15:03:49","date_gmt":"2007-06-18T14:03:49","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=253"},"modified":"2007-06-18T15:03:49","modified_gmt":"2007-06-18T14:03:49","slug":"why-doesnt-adobes-air-dev-guide-mention-sqlite","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/253-why-doesnt-adobes-air-dev-guide-mention-sqlite.html","title":{"rendered":"Why doesn&#8217;t Adobe&#8217;s AIR dev guide mention SQLite?"},"content":{"rendered":"<p>I&#8217;ve been trying out the <a href=\"http:\/\/labs.adobe.com\/downloads\/airsdk.html\" target=\"_blank\">Adobe AIR (formerly Apollo) SDK<\/a>.&nbsp; It&#8217;s a confusing business. There are two varieties of AIR apps, Flex, or HTML. The HTML kind is essentially a browser app that runs in <a href=\"http:\/\/webkit.org\/\" target=\"_blank\">WebKit<\/a>, as&nbsp;wrapped by the AIR runtime,&nbsp;instead of in the browser, while the Flex kind compiles Adobe&#8217;s MXML into a Flash SWF which again runs within AIR. The AIR SDK only supports HTML AIR apps, so for the full experience you also need the <a href=\"http:\/\/labs.adobe.com\/technologies\/flex\/sdk\/flex3sdk.html\" target=\"_blank\">Flex 3 beta SDK<\/a>.<\/p>\n<p>But I digress. I have a long-standing interest in <a href=\"http:\/\/www.sqlite.org\" target=\"_blank\">SQLite<\/a> so one of the first things I looked for was how Adobe is using this in AIR. It is there: it&#8217;s mentioned in the <a href=\"http:\/\/www.adobe.com\/aboutadobe\/pressroom\/pressreleases\/200706\/061107AIRBeta.html\" target=\"_blank\">press release<\/a>, which emphasizes that AIR has some of that open source fairy dust:<\/p>\n<blockquote>\n<p>Key elements of Adobe AIR are open source, including the WebKit HTML engine, the ActionScript\u2122 Virtual Machine (Tamarin project) and SQLite local database functionality.<\/p>\n<\/blockquote>\n<p>However, you wouldn&#8217;t know it from the docs. The word SQLite does not appear in either the Flex or the HTML developer guides. Here&#8217;s how it introduces the &#8220;local SQL databases&#8221; section:<\/p>\n<blockquote>\n<p>Adobe Integrated Runtime (AIR) includes the capability of creating and working with local SQL databases. The runtime includes a SQL database engine with support for many standard SQL features.<\/p>\n<\/blockquote>\n<p>The SQLite library itself appears to be compiled into the main AIR runtime library, Adobe AIR.dll.<\/p>\n<p>Why do I mention this? A few reasons. <\/p>\n<p>First, it stinks. Let me emphasize: Adobe is entirely within its rights in not crediting SQLite in its docs. The main author of SQLite, Dr D Richard Hipp, has disclaimed copyright. So it is not illegal, but it is discourteous. By contrast, here&#8217;s how the&nbsp;<a href=\"http:\/\/gears.google.com\" target=\"_blank\">Google Gears<\/a> docs introduce the database module:<\/p>\n<blockquote>\n<p>The Database module provides browser-local relational data storage to your JavaScript web application. Google Gears uses the open source <a href=\"http:\/\/www.google.com\/url?sa=D&amp;q=http:\/\/www.sqlite.org\/\">SQLite<\/a> database system.<\/p>\n<\/blockquote>\n<p>Second, it&#8217;s unhelpful. As a developer familiar with SQLite, I want to see an explanation of how Adobe&#8217;s build of SQLite differs from what I am used to &#8211; what is added, what if anything is taken away. I also need to know how easily I can access the same database from both AIR and from another application, using the standard SQLite library.<\/p>\n<p>Third, I&#8217;m increasingly sceptical of Adobe&#8217;s claim that it is somehow &#8220;aligning&#8221; its API in AIR with that in Gears. Here&#8217;s what Michele Turner, Adobe&#8217;s VP of developer relations, told me:<\/p>\n<blockquote>\n<p>Adobe, Google, Mozilla and others will be working to align the APIs used to access local database storage for offline applications, so this functionality will be consistent for developers both in the browser and via Apollo on the desktop.<\/p>\n<\/blockquote>\n<p>Perhaps, but there&#8217;s really no sign of this in the current beta. The AIR database API and the Gears API are&nbsp;totally different. The full text search extension which is part of Gears&nbsp;seems to be missing in AIR. Another key difference is that unlike Gears, AIR makes no attempt to isolate databases based on the origin of the application. In AIR, a SQLite database may be anywhere in the file system, and it&#8217;s equally available to any AIR application &#8211; a big hole in the AIR sandbox.<\/p>\n<p>This is all beta, of course, so it can change. I hope it does. Here&#8217;s my wish list:<\/p>\n<ul>\n<li>Proper credit for SQLite in the docs.\n<li>Use the Gears code &#8211; full text search could be very useful &#8211; and deliver on the promise of aligning the API.\n<li>Failing that, set out exactly how AIR&#8217;s SQLite differs from the standard build.<\/li>\n<\/ul>\n<div class=\"wlWriterSmartContent\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:5d4fc728-84f8-4d2e-80de-9a73ffaa666b\" contenteditable=\"false\" style=\"padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/adobe\" rel=\"tag\">adobe<\/a>, <a href=\"http:\/\/technorati.com\/tags\/air\" rel=\"tag\">air<\/a>, <a href=\"http:\/\/technorati.com\/tags\/sqlite\" rel=\"tag\">sqlite<\/a>, <a href=\"http:\/\/technorati.com\/tags\/open%20source\" rel=\"tag\">open source<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been trying out the Adobe AIR (formerly Apollo) SDK.&nbsp; It&#8217;s a confusing business. There are two varieties of AIR apps, Flex, or HTML. The HTML kind is essentially a browser app that runs in WebKit, as&nbsp;wrapped by the AIR runtime,&nbsp;instead of in the browser, while the Flex kind compiles Adobe&#8217;s MXML into a Flash &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/253-why-doesnt-adobes-air-dev-guide-mention-sqlite.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Why doesn&#8217;t Adobe&#8217;s AIR dev guide mention SQLite?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,80,96],"tags":[],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-internet","category-software-development","category-web-authoring"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}