Commit graph

3 commits

Author SHA1 Message Date
Yiming Cao
be330ff403
fix(orm): cuid() generator should respect version argument (#547)
* feat(orm): support where enum

* fix(orm): super transform for where

* feat(orm): support nested enum in where and/or

* fix: resolve field's model from scope instead of relying on table qualification

* fix(orm): cuid() generator should respect version argument

---------

Co-authored-by: FTB_lag <tabolskyy.git@gmail.com>
2025-12-29 23:18:35 +08:00
sanny-io
d89f1068f2
fix: check for empty strings and escapement for ID formatting (#542)
* fix: do not accept empty strings, check for escapement

* chore: add more edge cases, remove invalid test
2025-12-29 15:03:34 +08:00
sanny-io
4f06c2007c
Add support for generated identifier format strings (id prefixing). (#509)
* Add support for generated identifier format strings (ID prefixing).

* Add tests.

* Add missing semicolon.

* Cleanup logic.

* Fix typo.

* Use `replaceAll` instead.

* Add language support and tests.

* Simplify logic.

* allow using '\\%s' to escape replacement pattern, improve tests

* Shorten some test names.

---------

Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-12-25 16:04:59 +08:00