<?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>Kurifuri &#187; sqlite</title>
	<atom:link href="http://kurifuri.com/tag/sqlite/feed" rel="self" type="application/rss+xml" />
	<link>http://kurifuri.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 13 May 2012 16:15:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Database Rant</title>
		<link>http://kurifuri.com/2009/10/24/database-rant</link>
		<comments>http://kurifuri.com/2009/10/24/database-rant#comments</comments>
		<pubDate>Sat, 24 Oct 2009 22:41:30 +0000</pubDate>
		<dc:creator>Christopher Fritz</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[base]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[kexi]]></category>
		<category><![CDATA[openoffice.org]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://kurifuri.com/?p=112</guid>
		<description><![CDATA[Plain text files and spreadsheets are too limited for necessary data storage for story information. I&#8217;ve tried working out a text file format that I can load into a custom-written program to work with the data, but that just hasn&#8217;t worked out. I decided to check out database software. I&#8217;m already using GRAMPS for storing [...]]]></description>
			<content:encoded><![CDATA[<p>Plain text files and spreadsheets are too limited for necessary data storage for story information.  I&#8217;ve tried working out a text file format that I can load into a custom-written program to work with the data, but that just hasn&#8217;t worked out.  I decided to check out database software.</p>
<p><span id="more-112"></span></p>
<p><a href="http://www.flickr.com/photos/chris-fritz/3982045126/" title="Words by Chris Fritz, on Flickr"><img src="http://farm3.static.flickr.com/2492/3982045126_b3b008dc3c.jpg" width="500" height="309" alt="Words" /></a></p>
<p>I&#8217;m already using GRAMPS for storing data about characters for some stories, and it was a lot of trouble getting GRAMPS to look to a folder of my choosing to store its data.  And it can only have one data location.  I hoped to find a better solution.</p>
<p>First up?  OpenOffice.org&#8217;s &#8220;Base&#8221;, its database software.  Stores data in a file.  Or, at least, it stores a file.  The data doesn&#8217;t seem to be stored in the file.  That&#8217;s a failure for me, as I need to be able to easily back-up this data and share it between my laptop and a PC.</p>
<p>Okay, next up is Kexi.  Uses SQLite for saving a file.  Good, good.  Create a table, and populate it.  Looking nice.  Let&#8217;s add a column to the table.  I can add more as I need them.  Except&#8230;adding a column or removing one deletes everything in the table&#8230;</p>
<p>Maybe it&#8217;s because I&#8217;m using SQLite?  I tried to avoid the need to run a database server (this is on a laptop which often is running off of its battery), but I&#8217;ll go with MySQL.  Re-create the table, re-populate the data, add a column, and&#8230;it requires deleting everything in the table.</p>
<p>Let&#8217;s just add a column via PHPMyAdmin, which is not a decent interface for modifying a lot of data, but should work for adding a column.  Column added.  And Kexi won&#8217;t see that column at all, no matter what&#8230;</p>
<p>All right, back to OO.o Base.  Set up a MySQL connection, and&#8230;I need to connect either using ODBC or JDBC, and I can contact my system administrator if I&#8217;m confused.  ODBC looks like it wants me to select a file, but I get an error about an .so file not being installed.  JDBC wants the database name and server URL.  All right, I know the name, and &#8220;localhost&#8221; should suffice for the server.  Maybe the port number won&#8217;t need to be touched.  And&#8230;the JDBC driver cannot be loaded.</p>
<p>By this time, I&#8217;m an hour into just trying to have a way to easily sort data so I can start fiction writing with my characters well organized.</p>
<p>Reading into it more, JDBC has limitations which would require PHPMyAdmin to work around, but ODBC is more work to get set up.  ODBC is is, then.  I&#8217;ve manage to configure ODBC by adding a new System DNS, only to get an error about not being able to construct a property list.</p>
<p>At this point, thoughts turn to wondering how difficult is would be to install the SQLite driver for Base.  Thankfully there&#8217;s a .deb file for the software that bridges SQLite with ODBC (I use Kubuntu on my laptop).  This time, configuring ODBC isn&#8217;t an issue, as SQLite drivers already populate the Server DNS information.  I simply had to set up a Server DNS using the SQLite ODBC driver, and set the database file to save to.</p>
<p>Using Base, randomly fonts are a little scrunched, and sometimes the cursor icon doesn&#8217;t display.  I did not have these issues when I tested it earlier&#8230;  I have to save a file separate from the SQLite database file, which is understandable as Base wants to store extra information somewhere.  And&#8230;I can&#8217;t edit a database table in Base once I&#8217;ve added data.  Make this is an SQLite limitation?</p>
<p>I can use PHPMyAdmin to painstakingly input data, but that doesn&#8217;t help me write up queries for easy access of data.  Maybe it&#8217;s time to read up more on Qt&#8217;s SQLite support&#8230;</p>
<p>And it&#8217;s only taken me two hours to find no suitable database tool for me to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://kurifuri.com/2009/10/24/database-rant/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

