Method: RSQL::EvalContext#help

Defined in:
lib/rsql/eval_context.rb

#helpObject (private)

Show a short amount of information about acceptable syntax.



472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
# File 'lib/rsql/eval_context.rb', line 472

def help            # :doc:
    puts <<EOF

Converting values on the fly:

  rsql> select name, value from rsql_example ! value => humanize_bytes;

Inspect MySQL connection:

  rsql> . p [host_info, proto_info];

Escape strings:

  rsql> . p escape_string('drop table "here"');

Show only rows containing a string:

  rsql> select * from rsql_example | grep 'mystuff';

Show only rows containing a regular expression with case insensitive search:

  rsql> select * from rsql_example | grep /mystuff/i;

EOF
end