Skip to content

default database connection name #445

Open

Description

@MrAhmedSayedAli

how to set custom database connection name from code
by code like
report->dataManager()->setReportVariable("custom_connection_name",EasyQtSql::SqlFactory::getInstance()->getDatabase("CLOUD").connectionName())

report->dataManager()->setDefaultDatabasePath()

image

Activity

  1. MrAhmedSayedAli commented on Aug 21, 2023

    @MrAhmedSayedAli
    Author

    i just make temp fix for me
    add qh->setConnectionName(replaceVariables(qh->connectionName()));

    and
    if (!QSqlDatabase::contains(replaceVariables(connectionDesc->name())))

    if (!QSqlDatabase::contains(connectionDesc->name())){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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