Zane C. Bowers-Hadley > Wikileaks-AfWD-0.1.0 > afwd

Download:
Wikileaks-AfWD-0.1.0.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

afwd - Provides a commandline interface to DBI::Wikileaks::AfWD

SYNOPSIS ^

afwd [-d <DBI connection string>] [-u <user name>] [-p <password>] [-t <table>] [<SQL>]

SWITCHES ^

-d <DBI connection string>

This provides a DBI connection string.

-u <user name>

The user for use with DBI.

-p <password>

The password for use with DBI.

-t <table>]

The table to use instead of the default one.

ENVIRONMENTAL VARIABLES ^

AfWD_DBICS

If neither "dbiCS" or "dbh" is specified for the new method, this will be used.

AfWD_DBIUSER

This if $ENV{AfWD_DBICS} is used, this will be checked for the user.

AfWD_DBIPASS

This if $ENV{AfWD_DBICS} is used, this will be checked for the password.

QUICK START GUIDE ^

For this to work, you will need to install SQLite3 and DBD::SQLite

You will also need the SQL file from "http://wikileaks.org/wiki/Afghan_War_Diary,_2004-2010".

    sqlite3 -init afg_std.sql afwd.sql
    #if sh/bash
    export AfWD_DBICS="dbi:SQLite:dbname=afwd.sql"
    #if tcsh
    setenv AfWD_DBICS "dbi:SQLite:dbname=afwd.sql"
    #dump them all to AfWD.txt
    afwd > AfWD.txt
    #do the same search with a WHERE of "DColor LIKE 'BLUE'"
    afwd "DColor LIKE 'BLUE'" > blue.txt

AUTHOR ^

Copyright (c) 2010, Zame C. Bowers <vvelox@vvelox.net>

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
     this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS` OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

SCRIPT CATEGORIES ^

Search

OSNAMES ^

any

README ^

afwd - Provides a commandline interface to DBI::Wikileaks::AfWD

syntax highlighting: