<?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: Taffy DB Javascript Database</title>
	<atom:link href="http://ajaxian.com/archives/taffy-db-javascript-database/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/taffy-db-javascript-database</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: saradhimvs</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-274684</link>
		<dc:creator>saradhimvs</dc:creator>
		<pubDate>Mon, 27 Jul 2009 05:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-274684</guid>
		<description>Hi 
I am using this script ,it is working fine.I have one issue..how to  get data from two different tables in one single query..</description>
		<content:encoded><![CDATA[<p>Hi<br />
I am using this script ,it is working fine.I have one issue..how to  get data from two different tables in one single query..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skakbar</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-274673</link>
		<dc:creator>skakbar</dc:creator>
		<pubDate>Sat, 25 Jul 2009 07:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-274673</guid>
		<description>Hi All,
I am Akbar,
using the same script in my application
it is working fine in all cases.
orderby is not working 
i am using following sample code





Untitled Document



	function getSampleData()
	{
		var data = K.create.database({fieldName: [&#039;id&#039;, &#039;name&#039;, &#039;age&#039;],autoIncrement: [&#039;id&#039;, {start: 1, step: 1}]}); 
		
		data.Insert([&#039;ghik&#039;, 46]); 
		data.Insert([&#039;abcd&#039;, 15]);
		data.Insert([&#039;bced&#039;, 28]);
		data.Insert([&#039;cdef&#039;, 12]);
		data.Insert([&#039;defg&#039;, 9]);
		data.Insert([&#039;efgh&#039;, 38]);
		data.Insert([&#039;fghi&#039;, 35]);
		data.Insert({name: &#039;hikl&#039;, age: 19});
		data.Insert({name: &#039;iklm&#039;, age: 32});
		data.Insert({name: &#039;klmn&#039;, age: 27});
		data.Insert({name: &#039;lmno&#039;, age: 22}); 	
		
		var result = data.Select({id:&quot;id&quot;,name:&quot;name&quot;,orderby:&quot;name&quot;,limit:[0,11]});
		
		var resultData = new TAFFY(result);
		
		
		var tabbody = document.createElement(&quot;tbody&quot;);
		
		resultData.forEach(function(data){
		
			//alert(data.name);
		
			var tabrow = document.createElement(&quot;tr&quot;);
			
			var tabcell1 = document.createElement(&quot;td&quot;);
			var tabcell2 = document.createElement(&quot;td&quot;);
			var tabcell3 = document.createElement(&quot;td&quot;);
			
			tabcell1.appendChild(document.createTextNode(data.id));
			tabcell2.appendChild(document.createTextNode(data.name));
			tabcell2.appendChild(document.createTextNode(data.age));
			
			tabrow.appendChild(tabcell1);
			tabrow.appendChild(tabcell2);
			tabrow.appendChild(tabcell3);
			
			tabbody.appendChild(tabrow);
		
		});
		
		var tab = document.createElement(&quot;table&quot;);
		
		tab.appendChild(tabbody);
		document.getElementById(&#039;showTable&#039;).appendChild(tab);
	}	




	
    

</description>
		<content:encoded><![CDATA[<p>Hi All,<br />
I am Akbar,<br />
using the same script in my application<br />
it is working fine in all cases.<br />
orderby is not working<br />
i am using following sample code</p>
<p>Untitled Document</p>
<p>	function getSampleData()<br />
	{<br />
		var data = K.create.database({fieldName: ['id', 'name', 'age'],autoIncrement: ['id', {start: 1, step: 1}]}); </p>
<p>		data.Insert(['ghik', 46]);<br />
		data.Insert(['abcd', 15]);<br />
		data.Insert(['bced', 28]);<br />
		data.Insert(['cdef', 12]);<br />
		data.Insert(['defg', 9]);<br />
		data.Insert(['efgh', 38]);<br />
		data.Insert(['fghi', 35]);<br />
		data.Insert({name: &#8216;hikl&#8217;, age: 19});<br />
		data.Insert({name: &#8216;iklm&#8217;, age: 32});<br />
		data.Insert({name: &#8216;klmn&#8217;, age: 27});<br />
		data.Insert({name: &#8216;lmno&#8217;, age: 22}); 	</p>
<p>		var result = data.Select({id:&#8221;id&#8221;,name:&#8221;name&#8221;,orderby:&#8221;name&#8221;,limit:[0,11]});</p>
<p>		var resultData = new TAFFY(result);</p>
<p>		var tabbody = document.createElement(&#8220;tbody&#8221;);</p>
<p>		resultData.forEach(function(data){</p>
<p>			//alert(data.name);</p>
<p>			var tabrow = document.createElement(&#8220;tr&#8221;);</p>
<p>			var tabcell1 = document.createElement(&#8220;td&#8221;);<br />
			var tabcell2 = document.createElement(&#8220;td&#8221;);<br />
			var tabcell3 = document.createElement(&#8220;td&#8221;);</p>
<p>			tabcell1.appendChild(document.createTextNode(data.id));<br />
			tabcell2.appendChild(document.createTextNode(data.name));<br />
			tabcell2.appendChild(document.createTextNode(data.age));</p>
<p>			tabrow.appendChild(tabcell1);<br />
			tabrow.appendChild(tabcell2);<br />
			tabrow.appendChild(tabcell3);</p>
<p>			tabbody.appendChild(tabrow);</p>
<p>		});</p>
<p>		var tab = document.createElement(&#8220;table&#8221;);</p>
<p>		tab.appendChild(tabbody);<br />
		document.getElementById(&#8216;showTable&#8217;).appendChild(tab);<br />
	}	</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mnx2012</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-271304</link>
		<dc:creator>mnx2012</dc:creator>
		<pubDate>Thu, 12 Feb 2009 16:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-271304</guid>
		<description>I have a similar solution for this issue. My library is called Kombai. It  allows you to select, insert, update, delete, order a client collection of data( syntax look like MySQL ):
//create a new database
var mydata = K.create.database({
fieldName: [&quot;name&quot;, &quot;phone&quot;],
primaryKey: “phone”
});
// insert in to database
mydata.Insert([&quot;ohay&quot;, &quot;0987654321&quot;]);
mydata.Insert([&quot;oh&quot;, &quot;0987654322&quot;]);
mydata.Insert([&quot;ha&quot;, &quot;0987654323&quot;]);
mydata.Insert([&quot;hy&quot;, &quot;0987654324&quot;]);

mydata.Insert({”phone” : “0987654324?, “name” : “hy”});
mydata.Insert({”phone” : “0987654325?, “name” : “yo”});

//update
mydata.Update({”phone” : “232093430?, where: “name like ‘o%’”});
mydata.Update({”name”: “none”, where: “phone ==’0987654325?”});

//select
mydata.Select({fieldName: “phone”, where: “name like ‘%o%’”, orderBy: “phone”, Limit: 3});

//delete
mydata.Delete({Where: “name == ‘ohay’”});

//drop database:
mydata.drop();

other you can use select in DOM :

//getElementsByClassName
var list = K.select({from: document, where: “className == ‘toolbox’”});
var list2 = K.selcet({from: K(’id’), where: “nodeName == ‘SPAN’”});

Link download: http://vnjs.net/www/src/kombai.rar</description>
		<content:encoded><![CDATA[<p>I have a similar solution for this issue. My library is called Kombai. It  allows you to select, insert, update, delete, order a client collection of data( syntax look like MySQL ):<br />
//create a new database<br />
var mydata = K.create.database({<br />
fieldName: ["name", "phone"],<br />
primaryKey: “phone”<br />
});<br />
// insert in to database<br />
mydata.Insert(["ohay", "0987654321"]);<br />
mydata.Insert(["oh", "0987654322"]);<br />
mydata.Insert(["ha", "0987654323"]);<br />
mydata.Insert(["hy", "0987654324"]);</p>
<p>mydata.Insert({”phone” : “0987654324?, “name” : “hy”});<br />
mydata.Insert({”phone” : “0987654325?, “name” : “yo”});</p>
<p>//update<br />
mydata.Update({”phone” : “232093430?, where: “name like ‘o%’”});<br />
mydata.Update({”name”: “none”, where: “phone ==’0987654325?”});</p>
<p>//select<br />
mydata.Select({fieldName: “phone”, where: “name like ‘%o%’”, orderBy: “phone”, Limit: 3});</p>
<p>//delete<br />
mydata.Delete({Where: “name == ‘ohay’”});</p>
<p>//drop database:<br />
mydata.drop();</p>
<p>other you can use select in DOM :</p>
<p>//getElementsByClassName<br />
var list = K.select({from: document, where: “className == ‘toolbox’”});<br />
var list2 = K.selcet({from: K(’id’), where: “nodeName == ‘SPAN’”});</p>
<p>Link download: <a href="http://vnjs.net/www/src/kombai.rar" rel="nofollow">http://vnjs.net/www/src/kombai.rar</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toas</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-265305</link>
		<dc:creator>Toas</dc:creator>
		<pubDate>Sat, 21 Jun 2008 13:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-265305</guid>
		<description>hÄ±m i traying thatâ€™d be pretty sweet, particularly for browsers that donâ€™t yet have sqlite built in.</description>
		<content:encoded><![CDATA[<p>hÄ±m i traying thatâ€™d be pretty sweet, particularly for browsers that donâ€™t yet have sqlite built in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-262213</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 18 Mar 2008 20:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-262213</guid>
		<description>@porf &amp; musicfreak.

You both missed the point.  This isn&#039;t a library that allows you to write Javascript to connect to your server side database.

This is a database written in Javascript that runs in the browser.  It&#039;s a bit like cookies with an SQLeque interface.</description>
		<content:encoded><![CDATA[<p>@porf &amp; musicfreak.</p>
<p>You both missed the point.  This isn&#8217;t a library that allows you to write Javascript to connect to your server side database.</p>
<p>This is a database written in Javascript that runs in the browser.  It&#8217;s a bit like cookies with an SQLeque interface.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adnan Siddiqi</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-262106</link>
		<dc:creator>Adnan Siddiqi</dc:creator>
		<pubDate>Fri, 14 Mar 2008 06:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-262106</guid>
		<description>Will it work on IE7?
infact I would like to ask that can any library like Dojo can cater a buggy IE7/8 &#039;s Cookie bug issue and store things normally?</description>
		<content:encoded><![CDATA[<p>Will it work on IE7?<br />
infact I would like to ask that can any library like Dojo can cater a buggy IE7/8 &#8216;s Cookie bug issue and store things normally?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slightlyoff</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-262078</link>
		<dc:creator>slightlyoff</dc:creator>
		<pubDate>Thu, 13 Mar 2008 05:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-262078</guid>
		<description>would be fun to get this into a dojo.data store. You could even persist w/ dojox.storage...that&#039;d be pretty sweet, particularly for browsers that don&#039;t yet have sqlite built in.</description>
		<content:encoded><![CDATA[<p>would be fun to get this into a dojo.data store. You could even persist w/ dojox.storage&#8230;that&#8217;d be pretty sweet, particularly for browsers that don&#8217;t yet have sqlite built in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: musicfreak</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-262073</link>
		<dc:creator>musicfreak</dc:creator>
		<pubDate>Wed, 12 Mar 2008 23:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-262073</guid>
		<description>poft: Not if you implement some sort of security mechanism. I mean, if you just allow any SQL query to be run on your server at any time, then yes, it&#039;s unsafe. But you have to implement some sort of authorization system just like you would in a normal application.</description>
		<content:encoded><![CDATA[<p>poft: Not if you implement some sort of security mechanism. I mean, if you just allow any SQL query to be run on your server at any time, then yes, it&#8217;s unsafe. But you have to implement some sort of authorization system just like you would in a normal application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kant</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-262062</link>
		<dc:creator>Andy Kant</dc:creator>
		<pubDate>Wed, 12 Mar 2008 16:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-262062</guid>
		<description>I wrote a similar library for JavaScript that follows the ActiveRecord pattern but never released it publicly because there isn&#039;t a ton of use for a client-side database other than long life single page apps. I really like the interface that Ian put on this DB though, it fits in better with the normal JavaScript programming style than ActiveRecord does. Suggestion: Make your documentation page wider than 400px because you&#039;re wasting my screen space ;-).</description>
		<content:encoded><![CDATA[<p>I wrote a similar library for JavaScript that follows the ActiveRecord pattern but never released it publicly because there isn&#8217;t a ton of use for a client-side database other than long life single page apps. I really like the interface that Ian put on this DB though, it fits in better with the normal JavaScript programming style than ActiveRecord does. Suggestion: Make your documentation page wider than 400px because you&#8217;re wasting my screen space ;-).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: porf</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-262057</link>
		<dc:creator>porf</dc:creator>
		<pubDate>Wed, 12 Mar 2008 12:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-262057</guid>
		<description>Hmm, once i worked on something like this, but i stoped because its not safe

Anyone can go to firebug and execute some js that delete all your database etc

Maybe i am wrong but i don&#039;t think so</description>
		<content:encoded><![CDATA[<p>Hmm, once i worked on something like this, but i stoped because its not safe</p>
<p>Anyone can go to firebug and execute some js that delete all your database etc</p>
<p>Maybe i am wrong but i don&#8217;t think so</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: musicfreak</title>
		<link>http://ajaxian.com/archives/taffy-db-javascript-database/comment-page-1#comment-262044</link>
		<dc:creator>musicfreak</dc:creator>
		<pubDate>Wed, 12 Mar 2008 02:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=3427#comment-262044</guid>
		<description>I&#039;ve seen a ton of these kind of systems, but I&#039;ve never seen one on the client-side. To be honest, I&#039;ve never even thought of the idea. This is great stuff. It&#039;s probably not the first time such a simple idea has been implemented in JavaScript, but it&#039;s the first time I&#039;ve seen it, so to me it&#039;s entirely new and amazing. I might actually use this in my web application (whenever that gets done).</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen a ton of these kind of systems, but I&#8217;ve never seen one on the client-side. To be honest, I&#8217;ve never even thought of the idea. This is great stuff. It&#8217;s probably not the first time such a simple idea has been implemented in JavaScript, but it&#8217;s the first time I&#8217;ve seen it, so to me it&#8217;s entirely new and amazing. I might actually use this in my web application (whenever that gets done).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

