Class: Ronin::DB::CLI::Commands::People Private

Inherits:
ModelCommand show all
Includes:
Modifiable
Defined in:
lib/ronin/db/cli/commands/people.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Manages all People in the database.

Usage

ronin-db people [options]

Options

    --db NAME                    The database to connect to (Default: default)
    --db-uri URI                 The database URI to connect to
    --db-file PATH               The sqlite3 database file to use
-v, --verbose                    Enables verbose output
    --add VALUE                  Adds a value to the database
    --import FILE                Imports the values from the FILE into the database
    --delete VALUE               Deletes a value from the database
    --delete-all                 Deletes all values from the database
-a, --for-address ADDRESS        Searches for all People associated with the street address
-c, --for-city CITY              Searches for all People associated with the city
-s, --for-state STATE            Searches for all People associated with the state
-s, --for-province PROVINCE      Searches for all People associated with the province
-z, --for-zipcode ZIPCODE        Searches for all People associated with the zipcode
-C, --for-country COUNTRY        Searches for all People associated with the Country
-P, --with-prefix PREFIX         Searches for all People with the prefix
-f, --with-first-name NAME       Searches for all People with the first name
-m, --with-middle-name NAME      Searches for all People with the middle name
-M INITIAL,                      Searches for all People with the middle name
    --with-middle-initial
-l, --with-last-name NAME        Searches for all People with the last name
-S, --with-suffix SUFFIX         Searches for all People with the suffix
-h, --help                       Print help information

Since:

  • 0.2.0

Constant Summary

Constants included from URIMethods

URIMethods::ADAPTER_ALIASES

Instance Attribute Summary

Attributes inherited from ModelCommand

#query_method_calls

Method Summary

Methods included from Modifiable

included

Methods inherited from ModelCommand

#db_connect, #initialize, #list, #load_model, #model, model_file, model_name, #print_record, #query, #run

Methods included from DatabaseOptions

#db_config, #db_connect, included

Methods included from URIMethods

#normalize_adapter, #normalize_sqlite3_path, #parse_uri

Constructor Details

This class inherits a constructor from Ronin::DB::CLI::ModelCommand