<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.V1ru8.net &#187; SQLite</title>
	<atom:link href="http://blog.v1ru8.net/tag/sqlite/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.v1ru8.net</link>
	<description></description>
	<lastBuildDate>Mon, 28 Sep 2009 15:55:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The iPhone Notes DB &#8211; Terrible</title>
		<link>http://blog.v1ru8.net/2008/03/21/the-iphone-notes-db-terrible/</link>
		<comments>http://blog.v1ru8.net/2008/03/21/the-iphone-notes-db-terrible/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 16:12:37 +0000</pubDate>
		<dc:creator>Thomas Post</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[annoyance]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://www.v1ru8.net/2008/03/21/the-iphone-notes-db-terrible/</guid>
		<description><![CDATA[Since I&#8217;m developing the iPhoneNotes application i worked alot with the iPhone Notes database. This database is the data-source for my app. But it has a terrible layout: CREATE TABLE Note (creation_date INTEGER, title TEXT, summary TEXT) CREATE TABLE note_bodies (note_id INTEGER, data, UNIQUE(note_id)) column note_id is assigned to the rowid from the Note table [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;m developing the iPhoneNotes application i worked alot with the iPhone Notes database. This database is the data-source for my app. But it has a terrible layout:<br />
<code>CREATE TABLE Note (creation_date INTEGER, title TEXT, summary TEXT)</code><br />
<code>CREATE TABLE note_bodies (note_id INTEGER, data, UNIQUE(note_id))</code></p>
<ul>
<li>column <code>note_id</code> is assigned to the rowid from the <code>Note</code> table (don&#8217;t like that but it works)</li>
<li>In the Note database is the <code>title</code> of the note stored. And in the <code>summary</code> column is the content of the note store if it isn&#8217;t too big (absolutely don&#8217;t understand why?!?!)</li>
<li>the <code>data</code> column from the <code>note_bodies</code> database contains the content of the note always. But in a really strange pseudo HTML format. Every line is in a <code>div</code> element and sometimes it has a <code>br</code> element at the end of the line. The problem is that these <code>div</code> tags are not every time closed correct. So it is impossible to parse it with an XML parser.(I hate things like that)</li>
<li>Because the content of the note is stored twice it has a terrible data redundancy! I don&#8217;t understand why that is needed.</li>
</ul>
<p>So Apple please update the notes application in version 2.0. The actual note&#8217;s db is not how things should be done!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.v1ru8.net/2008/03/21/the-iphone-notes-db-terrible/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

