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)
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
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)