Skip to content

Is it possible to specify --init-command in ~/.myclirc? #1195

@your-diary

Description

@your-diary

Ideally I want to specify different --init-command for different DSNs defined in [alias_dsn].

For example, I want to always make the session read only via SET SESSION TRANSACTION READ ONLY when I connect to production database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions