Skip to content

implement PGSQL schema hasher #795

Description

@staabm

based on https://github.com/staabm/phpstan-dba/blob/main/src/DbSchema/SchemaHasherMysql.php it would be it would be great to have a PGSQL based variant to determine the "hash" of the current database connection.

the goal is to build a hash which changes whenever

  • a table changes its columns name, type, nullability (new column added, existing one removed, existing one altered)

this would be awesome to support DbSchemaResultCacheMetaExtension also on PGSQL, which would help to invalidate phpstan result cache when the db schema changes (which prevents false positives)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions