TypeScript Decorators / Annotations for ts-prorm-orm
Exports all decorator utilities organized by category:
Encryption —
/
for password hashing Procedures —
for stored procedures & SQL functions Views —
for mapping a Model class to a database view Permissions —
Set the global encryption adapter used by all
fields that do not specify their own adapter.
Call this once during application bootstrap, e.g.:
import bcrypt from 'bcrypt'; setEncryptionAdapter({ hash: (v) => bcrypt.hash(v, 12), verify: (plain, hash) => bcrypt.compare(plain, hash), });
TypeScript Decorators / Annotations for ts-prorm-orm
Exports all decorator utilities organized by category:
Encryption —
Secure
/
Secure Field
for password hashing Procedures —
Procedure
/
Sql Function
for stored procedures & SQL functions Views —
View
for mapping a Model class to a database view Permissions —
Can View
/
Cannot View
/
Permission
/
Can Write
/
Cannot Write