Skip to content

pgcli's equivalent to mycli's --init-command? #1499

Open
@your-diary

Description

@your-diary

mycli supports --init-command option:

--init-command TEXT             SQL statement to execute after connecting.
  • Does pgcli have this?

  • Is it possible to specify the init commands in the config file ~/.config/pgcli/config? Ideally I want to specify different --init-command for different DSNs defined in [alias_dsn].

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions