Rulvar API reference / @rulvar/store-postgres / quotaRulesFingerprint
Function: quotaRulesFingerprint()
ts
function quotaRulesFingerprint(rules): string;Defined in: packages/store-postgres/src/quota.ts:188
The canonical fingerprint of one rule SET (RV506): sha256 hex over the sorted canonical rule keys (the core's quotaRuleKey, the same encoding both store references bucket on). Order-insensitive on purpose, matching bucket semantics (equal rules land on the same bucket regardless of array position), so reordering a config never reads as a rules change. Exported so a deployment can precompute the value it expects a schema to have recorded.
Parameters
| Parameter | Type |
|---|---|
rules | readonly QuotaRule[] |
Returns
string