Automatically transforms Slonik's sql.type() calls to use a caching mechanism that prevents expensive re-initialization of Zod schemas, improving performance without requiring code changes.
TypeScript
4
0
Other
This Babel plugin automatically transforms Slonik's `sql.type()` calls to use a caching mechanism that prevents expensive re-initialization of Zod schemas, improving performance without requiring code changes. It's designed for developers using Slonik and Zod who want to optimize their database queries by avoiding repeated schema initialization. The plugin works by converting inline Zod schemas into cached versions using a hash-based singleton pattern, and can be combined with `zod-accelerator` for even greater performance gains.
Total donated
Undistributed
Share with your subscribers:
Recipients
How the donated funds are distributed
Support the dependencies of gajus/babel-plugin-slonik-sql-type-cache