<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Titanium Tutorial: Using the SQLite database synchronously</title>
	<atom:link href="http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/</link>
	<description>The musings of a mad software developer</description>
	<lastBuildDate>Wed, 10 Mar 2010 11:55:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian L</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-355</link>
		<dc:creator>Brian L</dc:creator>
		<pubDate>Mon, 21 Sep 2009 10:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-355</guid>
		<description>Thanks a lot for this concise introduction to Titanium.Database.
One thing I am not quite certain about is whether it is possible to create a database anywhere on the user&#039;s filesystem, or only inside the Titanium app&#039;s session.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this concise introduction to Titanium.Database.<br />
One thing I am not quite certain about is whether it is possible to create a database anywhere on the user&#8217;s filesystem, or only inside the Titanium app&#8217;s session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arif Muslax</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-169</link>
		<dc:creator>Arif Muslax</dc:creator>
		<pubDate>Tue, 18 Aug 2009 17:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-169</guid>
		<description>Thank you.</description>
		<content:encoded><![CDATA[<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge Meunier</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-163</link>
		<dc:creator>Serge Meunier</dc:creator>
		<pubDate>Mon, 17 Aug 2009 05:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-163</guid>
		<description>Hi Arif,

Using the code in the tutorial above, it should be easy to set up a script to do what you want.

What I would recommend is putting each operation into a function, such as the code to open the database, calling a sql query etc.

To create a table, all you need do is call db.execute(&quot;CREATE TABLE [xxx] ([col1] varchar(50), [col2] int) &quot;);  

Inserting a record is just as easy: db.execute(&quot;INSERT INTO [xxx] ([col1], [col2]) VALUES (&#039;test&#039;, 123);&quot;)

Retrieving a record I handled in the tutorial.

That is all you need to implement to do what you want the script to do. Displaying the data is fully reliant on how you are displaying your page, so I cannot help you there. The data can be manipulated like any other Javascript variable, and can be assigned to a textbox, or any other web control.</description>
		<content:encoded><![CDATA[<p>Hi Arif,</p>
<p>Using the code in the tutorial above, it should be easy to set up a script to do what you want.</p>
<p>What I would recommend is putting each operation into a function, such as the code to open the database, calling a sql query etc.</p>
<p>To create a table, all you need do is call db.execute(&#8220;CREATE TABLE [xxx] ([col1] varchar(50), [col2] int) &#8220;);  </p>
<p>Inserting a record is just as easy: db.execute(&#8220;INSERT INTO [xxx] ([col1], [col2]) VALUES (&#8216;test&#8217;, 123);&#8221;)</p>
<p>Retrieving a record I handled in the tutorial.</p>
<p>That is all you need to implement to do what you want the script to do. Displaying the data is fully reliant on how you are displaying your page, so I cannot help you there. The data can be manipulated like any other Javascript variable, and can be assigned to a textbox, or any other web control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arif Muslax</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-161</link>
		<dc:creator>Arif Muslax</dc:creator>
		<pubDate>Sun, 16 Aug 2009 21:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-161</guid>
		<description>Hi, I really need one page application sample that includes steps on creating a new database, creating table, inserting records, retrieving that record and displaying it on the page. Could you write it? I&#039;ve searched for days but found none. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi, I really need one page application sample that includes steps on creating a new database, creating table, inserting records, retrieving that record and displaying it on the page. Could you write it? I&#8217;ve searched for days but found none. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge Meunier</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-96</link>
		<dc:creator>Serge Meunier</dc:creator>
		<pubDate>Thu, 30 Jul 2009 15:27:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-96</guid>
		<description>As of yet, I have not seen any trace of transaction support. I am not sure if this is something the Appcelerator team are looking at or not, but will update the tutorials if it does become available.</description>
		<content:encoded><![CDATA[<p>As of yet, I have not seen any trace of transaction support. I am not sure if this is something the Appcelerator team are looking at or not, but will update the tutorials if it does become available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-64</link>
		<dc:creator>D</dc:creator>
		<pubDate>Fri, 24 Jul 2009 16:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-64</guid>
		<description>what about transaction support?</description>
		<content:encoded><![CDATA[<p>what about transaction support?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge Meunier</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-14</link>
		<dc:creator>Serge Meunier</dc:creator>
		<pubDate>Sat, 04 Jul 2009 12:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-14</guid>
		<description>The db name can be anything you want. Or at least anything that would make a valid filename (excluding the extension). What the SQLite db engine does is creates a db with that name if none exists previously.</description>
		<content:encoded><![CDATA[<p>The db name can be anything you want. Or at least anything that would make a valid filename (excluding the extension). What the SQLite db engine does is creates a db with that name if none exists previously.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Griffiths</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-13</link>
		<dc:creator>Rob Griffiths</dc:creator>
		<pubDate>Sat, 04 Jul 2009 09:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-13</guid>
		<description>Great post.

Question though, can the db name be anything or are there set names?</description>
		<content:encoded><![CDATA[<p>Great post.</p>
<p>Question though, can the db name be anything or are there set names?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitted by marshall_law</title>
		<link>http://www.sergemeunier.com/blog/titanium-tutorial-using-the-sqlite-database-synchronously/comment-page-1/#comment-12</link>
		<dc:creator>Twitted by marshall_law</dc:creator>
		<pubDate>Sat, 04 Jul 2009 05:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.sergemeunier.com/blog/?p=57#comment-12</guid>
		<description>[...] This post was Twitted by marshall_law [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by marshall_law [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
