Add long hash to Hash class, switch DB IO from md5

Add a new long hash type and uniq id long hash.
Also set the default hash (short) and hash long to a public constant

Switch all DB IO from md5 to long hash type so we can easy update
hashing of queries
This commit is contained in:
Clemens Schwaighofer
2022-02-25 13:44:27 +09:00
parent 51a0276268
commit 780fdedcfd
9 changed files with 279 additions and 221 deletions

View File

@@ -102,9 +102,9 @@ class PgSQL
* Proposed
* wrapperf or pg_query_params for queries in the style of
* SELECT foo FROM bar WHERE foobar = $1
* @param string $query Query string with placeholders $1, ..
* @param array $params matching parameters for each placerhold
* @return object|resource|bool query result (PgSql\Result)
* @param string $query Query string with placeholders $1, ..
* @param array<mixed> $params Matching parameters for each placerhold
* @return object|resource|bool Query result (PgSql\Result)
*/
public function __dbQueryParams(string $query, array $params)
{