Skip to content

Add test() method to Connection #303

@demmmmios

Description

@demmmmios

Hello, could you add a test query function that simply returns the query without executing it?

Nextras\Dbal\Connection.php

public function test(string $expression, ...$args): string
{
    array_unshift($args, $expression);
    return $this->sqlPreprocessor->process($args);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions