Skip to content

[Enhancement]Replace getPdo with getReadPdo #346

@maoxuner

Description

@maoxuner

$tnt->setDatabaseHandle($db->getPdo());

When importing, read only access is enough. I think it will be better to replace getPdo with getReadPdo if there is a read-and-write connection.

In my condition, I run tntsearch:import from a standalone instance with only read only access to my db. But getPdo always returns default pdo (from database write server config)

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