Skip to content

Relax the requirement for SQL to be a string #2969

@JanZelenka

Description

@JanZelenka

Hi!
I'm building a Database driver. The difficulty is that the database engine is queried using an API, not SQL. As a consequence the table (FROM clause) is a part of the API URL, not the query itself. I would find it helpful if the DB methods that work with the $sql parameter could be relaxed not to require strictly the string data type and allow an array as well.
Thanks for considering

CodeIgniter 4 version
4.0.3

Affected module(s)
Database

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseIssues or pull requests that affect the database layerenhancementPRs that improve existing functionalities

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions