Adds camelCase support for encrypted field mappings (#342)

Extends encrypted field mappings to include camelCase variants
to support consistency and compatibility with different naming
conventions. Updates reverse mappings for Drizzle ORM to allow
conversion between camelCase and snake_case field names.

Improves integration with systems using mixed naming styles.
This commit was merged in pull request #342.
This commit is contained in:
Ved Prakash
2025-10-05 05:39:10 +05:30
committed by GitHub
parent 8aa2ee67ae
commit aaec940b1b
2 changed files with 18 additions and 1 deletions

View File

@@ -6,6 +6,10 @@ export class LazyFieldEncryption {
key_password: "keyPassword",
private_key: "privateKey",
public_key: "publicKey",
// Reverse mappings for Drizzle ORM (camelCase -> snake_case)
keyPassword: "key_password",
privateKey: "private_key",
publicKey: "public_key",
};
static isPlaintextField(value: string): boolean {