Skip to content

doctrine dbal type inference #197

Open
@staabm

Description

@staabm

Todo

  • Connection->fetchAssociative
  • Connection->fetchNumeric
  • Connection->fetchOne
  • Connection->fetchAllNumeric
  • Connection->fetchAllAssociative
  • Connection->fetchAllKeyValue
  • Connection->fetchAllAssociativeIndexed
  • Connection->fetchFirstColumn
  • Connection->iterateNumeric
  • Connection->iterateAssociative
  • Connection->iterateKeyValue
  • Connection->iterateAssociativeIndexed
  • Connection->iterateColumn
  • Connection->prepare
  • Connection->executeQuery
  • Connection->executeCacheQuery
  • Connection->executeStatement
  • Connection->executeUpdate (deprecated in doctrine)
  • Connection->query (deprecated in doctrine)
  • Connection->exec (deprecated in doctrine)

https://github.com/doctrine/dbal/blob/3.3.x/src/Connection.php

  • Statement->executequery
  • Statement->execute

https://github.com/doctrine/dbal/blob/3.3.x/src/Statement.php

  • Result->fetchNumeric

  • Result->fetchAssociative

  • Result->fetchOne

  • Result->fetchAllNumeric

  • Result->fetchAllAssociative

  • Result->fetchAllKeyValue

  • Result->fetchAllAssociativeIndexed

  • Result->fetchFirstColumn

  • Result->iterateNumeric

  • Result->iterateAssociative

  • Result->iterateKeyValue

  • Result->iterateAssociativeIndexed

  • Result->iterateColumn

  • Result->columnCount

  • Result->fetch (deprecated in doctrine)

  • Result->fetchAll (deprecated in doctrine)

https://github.com/doctrine/dbal/blob/3.3.x/src/Result.php

Remaining select-based api seems to be supported already

see https://github.com/staabm/phpstan-dba/blob/main/tests/data/doctrine-dbal.php for everything we understand right now

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions