Changes between Version 1 and Version 2 of DatabaseBasedAnalysis/rootifysql


Ignore:
Timestamp:
08/05/18 17:04:21 (6 years ago)
Author:
tbretz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseBasedAnalysis/rootifysql

    v1 v2  
    6363{{{
    6464user@machine> echo "SELECT 'Hello World\!'" > query.sql
    65 user@machine> rootifysql -d -n --query="SELECT 'Hello World\!'"
     65user@machine> rootifysql -d -n query.sql
    6666Reading global  options from 'fact++.rc'.
    6767Reading default options from 'rootifysql.rc'.
     
    9191--------------------------------------------------------------
    9292}}}
     93
     94== Connection information ==
     95
     96To get more information on the connection to the database, use {{{--print-connection}}}, for example
     97{{{
     98user@machine> user@machine> rootifysql -d -n --print-connection query.sql
     99[...]
     100------------------------ Rootify SQL -------------------------
     101[...]
     102Compression of database connection is ON
     103Connection to databases is ENCRYPTED (DHE-RSA-AES256-SHA)
     104[...]
     105--------------------------------------------------------------
     106
     107Bytes_sent       398
     108Bytes_received   546
     109}}}
     110
     111Note that this data is retrieved through additional requests, which in principle slow down the execution time and add additional traffic to the connection.
     112
     113== Writing to an ASCII file ==
     114
     115We can redirect the result of the query to an ASCII file by
     116{{{
     117rootifysql -v 0 -d -n query.sql > output.txt
     118}}}
     119
     120A verbosity level of 0 ({{{-v 0}}}) is required to turn off all the other output to standard out.
     121
     122If you want to keep it you can directly write to a file by
     123
     124{{{
     125rootifysql -n query.sql -w output.txt
     126}}}
     127
     128Here {{{-w}}} is a shortcut to {{{--write}}}.
     129
     130== Writing to a root-file ==
    93131
    94132