`homeboy db` command reference

Generated from the clap command tree. This page is the complete synopsis, argument, flag, and subcommand surface for this command family.

Concepts, recipes, and contracts are hand-written in docs/commands/db.md.

Global flags apply to every command and are documented once in the root command reference.

homeboy db

sh
homeboy db <COMMAND>

Database operations

SubcommandSummary
homeboy db statusShow local Homeboy observation-store status
homeboy db tablesList database tables
homeboy db describeShow table structure
homeboy db queryExecute SELECT query
homeboy db searchSearch table by column value
homeboy db delete-rowDelete a row from a table
homeboy db drop-tableDrop a database table
homeboy db tunnelOpen SSH tunnel to database

homeboy db status

sh
homeboy db status

Show local Homeboy observation-store status

homeboy db tables

sh
homeboy db tables <PROJECT_ID> [ARGS]...

List database tables

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
[ARGS]...noOptional subtarget

homeboy db describe

sh
homeboy db describe <PROJECT_ID> [ARGS]...

Show table structure

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
[ARGS]...noOptional subtarget and table name

homeboy db query

sh
homeboy db query <PROJECT_ID> [ARGS]...

Execute SELECT query

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
[ARGS]...noOptional subtarget and SQL query
sh
homeboy db search [OPTIONS] <PROJECT_ID> <TABLE>

Search table by column value

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
<TABLE>yesTable name
OptionValueDescription
--column<COLUMN>Column to search
--pattern<PATTERN>Search pattern
--exactflagUse exact match instead of LIKE
--limit<LIMIT>Maximum rows to return
--subtarget<SUBTARGET>Optional subtarget

homeboy db delete-row

sh
homeboy db delete-row [OPTIONS] <PROJECT_ID> [ARGS]...

Delete a row from a table

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
[ARGS]...noTable name and row ID
OptionValueDescription
--applyflagApply the destructive mutation. Without this flag, prints a plan only

homeboy db drop-table

sh
homeboy db drop-table [OPTIONS] <PROJECT_ID> [ARGS]...

Drop a database table

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
[ARGS]...noTable name
OptionValueDescription
--applyflagApply the destructive mutation. Without this flag, prints a plan only

homeboy db tunnel

sh
homeboy db tunnel [OPTIONS] <PROJECT_ID>

Open SSH tunnel to database

ArgumentRequiredDescription
<PROJECT_ID>yesProject ID
OptionValueDescription
--local-port<LOCAL_PORT>Local port to bind