<?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>killianfaughnan.com &#187; csvsql</title>
	<atom:link href="http://killianfaughnan.com/tag/csvsql/feed/" rel="self" type="application/rss+xml" />
	<link>http://killianfaughnan.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 23 Feb 2011 09:05:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>CsvSQL Man Page</title>
		<link>http://killianfaughnan.com/2008/11/12/csvsql-man-page/</link>
		<comments>http://killianfaughnan.com/2008/11/12/csvsql-man-page/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 10:27:21 +0000</pubDate>
		<dc:creator>kfaughnan</dc:creator>
				<category><![CDATA[csvsql]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[man]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://killianfaughnan.com/?p=42</guid>
		<description><![CDATA[NAME Csvsql &#8211; use SQL queries to access information in CSV files DESCRIPTION csvsql enables you to access a CSV file as if it were a table in a database. This means you can use SQL queries, with each ’common seperated value’ as part of a column. Traditionally in order to access specific information from [...]]]></description>
			<content:encoded><![CDATA[<p>NAME<br />
Csvsql &#8211; use SQL queries to access information in CSV files</p>
<p>DESCRIPTION<br />
csvsql enables you to access a CSV file as if it were a table in a database.  This means you can use SQL queries, with each ’common seperated<br />
value’ as part of a column.</p>
<p>Traditionally in order to access specific information from a CSV file it can take considerable use of regular expressions, awk and sed amongst<br />
others. What if you only wanted to take out a handful of lines from a large file? It nearly becomes easier to do it manually than to figure out<br />
the expressions needed otherwise.</p>
<p>SYNOPSIS<br />
Csvsql [-h] [-v] [-c "command"] [-s seperator] [-p filename] [-l logging]</p>
<p>COMMAND LINE OPTIONS<br />
-h  This help message</p>
<p>-v  Prints Csvsql version number</p>
<p>-c  Run this command and exit. Command should be in &#8220;&#8221;</p>
<p>-s  User defined separator (defaults to , ) if using a space please use &#8221; &#8221;</p>
<p>-p  Copy output to a specified file. This option can also be specified in interactive mode.</p>
<p>-l  Switch logging on or off. 1 = on, 0 = off (defaults to 1)<br />
INTERACTIVE OPTIONS<br />
SUPPORTED SQL QUERIES</p>
<p>At present the supported queries are:</p>
<p>SELECT<br />
SELECT [ * | select_expr ]<br />
[ FROM file_name [ WHERE where_condition ]<br />
[ LIMIT row_count ] ]</p>
<p>INSERT<br />
INSERT INTO file_name<br />
(col_name,col_name,&#8230;)<br />
VALUES (expr,expr,&#8230;)</p>
<p>UPDATE<br />
UPDATE file_name<br />
SET col_name=expr<br />
[ WHERE where_condition ]</p>
<p>DELETE<br />
DELETE FROM file_name<br />
WHERE where_condition</p>
<p>CREATE<br />
CREATE file_name<br />
(col_name,col_name,&#8230;)<br />
WITH VALUES (expr,expr&#8230;)</p>
<p>WHERE<br />
The WHERE clause, if given, indicates the condition or conditions that rows must satisfy to be selected.  where_condition is an expression<br />
that evaluates to true for each row to be selected. The statement selects all rows if there is no WHERE clause.</p>
<p>The WHERE clause can be used for selections that include an AND or an OR operator, where AND requires for both conditions to be true, and OR<br />
requires either one or the other.</p>
<p>NON-SQL COMMANDS</p>
<p>open [file_name]<br />
Opens a file and read it’s contents into memory</p>
<p>close [file_name]<br />
Closes the specified file and release all locks. If no file specified will default to the currently opened file.</p>
<p>describe [file_name]<br />
Display a files column headings.</p>
<p>set pipe = [file_name | off]<br />
Will copy output to a specified file. This option can also be specified as a command line option</p>
<p>ls [path]<br />
List specified directory</p>
<p>dir [path]<br />
Same as above</p>
<p>clear<br />
Clear screen</p>
<p>cls Same as above</p>
<p>version<br />
Print version number</p>
<p>dump<br />
Dump a listing of data in memory</p>
<p>SPECIAL VALUES<br />
isnull<br />
In order to check for, or insert a null value, you should use isnull in place of ’’ Example: SELECT * FROM file_name WHERE col_name  = isnull</p>
<p>LICENCE<br />
Copyright (C) 2008 Killian Faughnan</p>
<p>CsvSQL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft‐<br />
ware Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>You should have received a copy of the GNU General Public License along with CsvSQL. If not, see &lt;http://www.gnu.org/licenses&gt;</p>
<p>Author: Killian Faughnan &lt;killian [at] killianfaughnan [dot] com&gt;</p>
<p>&lt;http://www.killianfaughnan.com&gt;</p>
<p>SEE ALSO<br />
For further documentation please see &lt;http://docs.killianfaughnan.com/csvsqldocs&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://killianfaughnan.com/2008/11/12/csvsql-man-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CsvSQL</title>
		<link>http://killianfaughnan.com/2008/11/12/csvsql/</link>
		<comments>http://killianfaughnan.com/2008/11/12/csvsql/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 10:24:07 +0000</pubDate>
		<dc:creator>kfaughnan</dc:creator>
				<category><![CDATA[csvsql]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://killianfaughnan.com/?p=39</guid>
		<description><![CDATA[About CsvSQL Csvsql is a project I started for my BSc&#8217;s final year software project. It is written in Perl and can be used to access information in csv files in the same way you would access a table in a database. This means you can use SQL queries, with each common seperated value as [...]]]></description>
			<content:encoded><![CDATA[<h3>About CsvSQL</h3>
<p>Csvsql is a project I started for my BSc&#8217;s final year software project. It is written in Perl and can be used to access information in csv files in the same way you would access a table in a database. This means you can use SQL queries, with each common seperated value as a field in a column.</p>
<p>Traditionally in order to access specific information from a csv file it can take considerable use of regular expressions, and awk commands. What if you only wanted to take out a handful of lines from a large file? It nearly becomes easier to do it manually than to figure out the expressions needed in awk.</p>
<h3>CsvSQL Download</h3>
<p>You can download CsvSQL here. If you have and questions, suggestions, criticisms or comments please let me know as I would be interested in hearing them. And if you do decide to use this program for something, let me know how you get on!</p>
<p><a href="http://killianfaughnan.com/wp-content/uploads/2008/11/csvsqltar.gz" target="_blank">download csvsql</a></p>
]]></content:encoded>
			<wfw:commentRss>http://killianfaughnan.com/2008/11/12/csvsql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

